Commit 7e6c8ad6 authored by Wayne Davison's avatar Wayne Davison

Don't try to backup a file being removed from the backup area.

parent 407ea78a
......@@ -170,7 +170,7 @@ enum delret delete_item(char *fbuf, uint16 mode, uint16 flags)
what = "rmdir";
ok = do_rmdir(fbuf) == 0;
} else {
if (make_backups > 0 && (backup_dir || !is_backup_file(fbuf))) {
if (make_backups > 0 && !(flags & DEL_FOR_BACKUP) && (backup_dir || !is_backup_file(fbuf))) {
what = "make_backup";
ok = make_backup(fbuf, True);
if (ok == 2) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment