]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(print_long_format): Add a space between %s and %3u. This
authorJim Meyering <jim@meyering.net>
Sun, 4 Apr 1999 14:41:43 +0000 (14:41 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 4 Apr 1999 14:41:43 +0000 (14:41 +0000)
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.

src/ls.c

index f30094d6a25995f2a42c3c85c8c9110b0c579ebc..6a16d54001ca6bcef7c17557fa7c71c3ab97ed15 100644 (file)
--- 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));