diff options
author | David Dykstra <dwd@samba.org> | 1998-11-24 20:51:45 +0000 |
---|---|---|
committer | David Dykstra <dwd@samba.org> | 1998-11-24 20:51:45 +0000 |
commit | 7212be92378e5fe869b015dfc0efeae2afb336c0 (patch) | |
tree | 20879fde04435548062958869a3b51073cb940fe /flist.c | |
parent | 44e2e57837bcdce0d12a429c308211763ab030db (diff) | |
download | rsync-7212be92378e5fe869b015dfc0efeae2afb336c0.tar.gz rsync-7212be92378e5fe869b015dfc0efeae2afb336c0.tar.bz2 rsync-7212be92378e5fe869b015dfc0efeae2afb336c0.zip |
Don't list cleaned-out duplicate file names as "<NULL>" when doing
list_only mode; skip them instead.
Diffstat (limited to 'flist.c')
-rw-r--r-- | flist.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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]; } |