Fix list-only output of dirs w/--relative but w/o --recursive.
authorWayne Davison <wayned@samba.org>
Sun, 7 Oct 2007 03:29:04 +0000 (03:29 +0000)
committerWayne Davison <wayned@samba.org>
Sun, 7 Oct 2007 03:29:04 +0000 (03:29 +0000)
generator.c

index e6e5003274d480c7de5bd4d14ba97131ec30e5f0..502030a864644d59fcbb6f4ffd469117994c48d3 100644 (file)
@@ -1139,7 +1139,7 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
 
        if (list_only) {
                if (S_ISDIR(file->mode)
-                && ((!implied_dirs && !(file->flags & FLAG_XFER_DIR))
+                && ((relative_paths && !implied_dirs && !(file->flags & FLAG_XFER_DIR))
                  || (inc_recurse && ndx != cur_flist->ndx_start - 1)))
                        return;
                list_file_entry(file);