From: David Dykstra Date: Tue, 24 Nov 1998 20:51:45 +0000 (+0000) Subject: Don't list cleaned-out duplicate file names as "" when doing X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/7212be92378e5fe869b015dfc0efeae2afb336c0 Don't list cleaned-out duplicate file names as "" when doing list_only mode; skip them instead. --- diff --git a/flist.c b/flist.c index caca010f..e7b1f139 100644 --- 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<