mirror of
https://github.com/coreutils/coreutils.git
synced 2025-01-11 18:43:22 +08:00
(print_long_format): Add a space between %s and %3u. This
assures that even when modebuf has the trailing `+' and there are more than 99 hard links to a file, the permissions string and the link count will be separated.
This commit is contained in:
parent
5b86bf7cde
commit
d008b48e3b
2
src/ls.c
2
src/ls.c
@ -2259,7 +2259,7 @@ print_long_format (const struct fileinfo *f)
|
||||
|
||||
/* The last byte of the mode string is the POSIX
|
||||
"optional alternate access method flag". */
|
||||
sprintf (p, "%s%3u ", modebuf, (unsigned int) f->stat.st_nlink);
|
||||
sprintf (p, "%s %3u ", modebuf, (unsigned int) f->stat.st_nlink);
|
||||
p += strlen (p);
|
||||
|
||||
user_name = (numeric_ids ? NULL : getuser (f->stat.st_uid));
|
||||
|
Loading…
Reference in New Issue
Block a user