Must check FLAG_MOUNT_POINT in delete_in_dir() to avoid starting a
authorWayne Davison <wayned@samba.org>
Sun, 22 May 2005 17:19:16 +0000 (17:19 +0000)
committerWayne Davison <wayned@samba.org>
Sun, 22 May 2005 17:19:16 +0000 (17:19 +0000)
descent into a mounted directory when -x is specified.

generator.c

index 7636784..ec5a4d5 100644 (file)
@@ -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;