]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Don't list cleaned-out duplicate file names as "<NULL>" when doing
authorDavid Dykstra <dwd@samba.org>
Tue, 24 Nov 1998 20:51:45 +0000 (20:51 +0000)
committerDavid Dykstra <dwd@samba.org>
Tue, 24 Nov 1998 20:51:45 +0000 (20:51 +0000)
list_only mode; skip them instead.

flist.c

diff --git a/flist.c b/flist.c
index caca010f8dcedd58369d0095d5ab1477229baba4..e7b1f139a6a48a366507a3746bec3f94f4635fb8 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -58,6 +58,10 @@ static void list_file_entry(struct file_struct *f)
        char *perm_map = "rwxrwxrwx";
        int i;
 
+       if (!f->basename)
+               /* this can happen if duplicate names were removed */
+               return;
+
        for (i=0;i<9;i++) {
                if (f->mode & (1<<i)) perms[9-i] = perm_map[8-i];
        }