summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-04-04 14:41:43 +0000
committerJim Meyering <jim@meyering.net>1999-04-04 14:41:43 +0000
commitd008b48e3b8a14af6ba4faab3f5361a880fcfc30 (patch)
treea9ca86a0b77f7b523f9b927eb6bd64793358cd90 /src/ls.c
parent5b86bf7cdeac1b48597959ca691eaad6cb11b2e5 (diff)
downloadcoreutils-d008b48e3b8a14af6ba4faab3f5361a880fcfc30.tar.xz
(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.
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index f30094d6a..6a16d5400 100644
--- a/src/ls.c
+++ b/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));