Commit 6e8b9f13 authored by Wayne Davison's avatar Wayne Davison

Must check FLAG_MOUNT_POINT in delete_in_dir() to avoid starting a

descent into a mounted directory when -x is specified.
parent 6efe9416
......@@ -260,7 +260,7 @@ static void delete_in_dir(struct file_list *flist, char *fbuf,
* from the filesystem. */
for (i = dirlist->count; i--; ) {
struct file_struct *fp = dirlist->files[i];
if (!fp->basename)
if (!fp->basename || fp->flags & FLAG_MOUNT_POINT)
continue;
if (flist_find(flist, fp) < 0) {
int mode = fp->mode;
......
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