summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-09-28 20:24:41 +0200
committerJim Meyering <meyering@redhat.com>2009-09-29 11:42:45 +0200
commit36edf7bad2ab76720a0bf6519074d23d4b8823a7 (patch)
tree8c762204a8de0171ba33fee50d8ae931291e2f8e /NEWS
parent242689c7f93de72693979f877dd31b3ef7178eea (diff)
downloadcoreutils-36edf7bad2ab76720a0bf6519074d23d4b8823a7.tar.xz
ls: print "?", not "0" as inode of dereferenced dangling symlink
ls prints inode numbers two ways: for long (-l) listings, and for short ones, e.g., ls -li and ls -i. The code to print long listings properly printed "?" when the inode was unknown, but the code for handling short listings would print 0 instead. Factor out the formatting code into a new function so ls prints the right string ("?") from both places: * NEWS (Bug fixes): Mention it. * src/ls.c (format_inode): New function. (print_long_format): Use it here. (print_file_name_and_frills): Use it here, too. * tests/ls/dangle: Exercise this fix. Reported by Yang Ren in http://bugzilla.redhat.com/525400
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index d0a9a7d62..68ac24b10 100644
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,9 @@ GNU coreutils NEWS -*- outline -*-
ls -LR exits with status 2, not 0, when it encounters a cycle
+ ls -Li is now consistent with ls -Lil in printing "?", not "0" as the
+ inode of a dangling symlink.
+
** Portability
On Solaris 9, many commands would mistakenly treat file/ the same as