Commit 7212be92 authored by David Dykstra's avatar David Dykstra

Don't list cleaned-out duplicate file names as "<NULL>" when doing

list_only mode; skip them instead.
parent 44e2e578
......@@ -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];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment