Commit 8443e9ae 8443e9ae4f1099c4b0d49fb21fea5a1cb656290a by Sergey Poznyakoff

(quit): Don't call rename if both file and draftfile are the same.

1 parent 6457912a
......@@ -423,6 +423,7 @@ quit (struct mh_whatnow_env *wh, int argc, char **argv, int *status)
else
{
printf (_("draft left on \"%s\".\n"), wh->draftfile);
if (strcmp (wh->file, wh->draftfile))
rename (wh->file, wh->draftfile);
}
}
......