print the entry name not the absolute_name -- to be consistent
with the usual case.
* tests/ls/stat-failed: Update accordingly.
2006-07-25 Jim Meyering <jim@meyering.net>
+ * src/ls.c (gobble_file): When handling a stat-failed entry,
+ print the entry name not the absolute_name -- to be consistent
+ with the usual case.
+ * tests/ls/stat-failed: Update accordingly.
+
* src/ls.c: Add parens around the new uses of ?: ternary operator.
* src/dircolors.hin: Mention that ORPHAN refers not just to dangling
#if USE_ACL
f->have_acl = false;
#endif
- f->name = xstrdup (absolute_name);
+ f->name = xstrdup (name);
files_index++;
return 0;
cat <<\EOF > exp || fail=1
total 0
-?--------- ? ? ? d/s
+?--------- ? ? ? s
EOF
cmp out exp || fail=1
cat <<\EOF > exp || fail=1
total 0
- ? ?--------- ? ? ? ? ? d/s
-//DIRED// 46 49
+ ? ?--------- ? ? ? ? ? s
+//DIRED// 46 47
//DIRED-OPTIONS// --quoting-style=literal
EOF