Jim Meyering
36edf7bad2
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
2009-09-29 11:42:45 +02:00
..
2009-06-17 14:54:29 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-08-25 09:21:00 +02:00
2009-09-23 14:33:40 +01:00
2009-09-23 14:33:40 +01:00
2009-09-23 14:33:40 +01:00
2009-09-23 14:33:40 +01:00
2009-09-23 14:33:40 +01:00
2009-08-25 09:21:00 +02:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-25 07:03:36 -06:00
2009-08-29 00:24:49 +01:00
2009-08-25 09:21:00 +02:00
2008-11-20 10:21:52 +01:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-06-23 22:33:15 +02:00
2009-09-23 14:33:40 +01:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-19 12:26:41 +02:00
2009-09-21 12:37:57 +01:00
2009-06-23 22:33:15 +02:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-23 14:33:40 +01:00
2009-09-23 14:33:40 +01:00
2009-08-25 09:21:00 +02:00
2009-09-21 12:37:57 +01:00
2005-07-18 07:52:37 +00:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-08-25 09:21:00 +02:00
2009-06-23 22:33:15 +02:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-23 14:33:40 +01:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2003-07-06 06:08:40 +00:00
2009-06-17 14:54:29 +01:00
2009-09-21 12:37:57 +01:00
2009-09-25 07:03:03 -06:00
2009-09-21 12:37:57 +01:00
2009-09-29 11:42:45 +02:00
2009-09-11 14:08:51 +02:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-23 14:33:40 +01:00
2009-02-28 11:06:35 +01:00
2009-06-23 22:33:15 +02:00
2009-09-21 12:37:57 +01:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-06-23 22:33:15 +02:00
2009-03-02 09:10:17 +01:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-11 14:08:58 +02:00
2009-09-11 14:08:51 +02:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-23 14:33:40 +01:00
2009-09-21 20:42:16 -06:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-08-25 09:21:00 +02:00
2009-09-21 12:37:57 +01:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2007-07-10 19:00:00 +02:00
2007-07-10 19:00:00 +02:00
2009-09-21 12:37:57 +01:00
2007-07-10 19:00:00 +02:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-22 12:21:00 +01:00
2009-09-21 12:37:57 +01:00
2009-09-23 14:33:40 +01:00
2009-08-25 09:21:00 +02:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00