]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(human_access): Use (new) filemodestring rather than
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Apr 2006 23:23:43 +0000 (23:23 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Apr 2006 23:23:43 +0000 (23:23 +0000)
(old) mode_string, so that we get more file types right, at least
in theory.  Adjust to filemode changes.

src/stat.c

index fd5f8bd313875b96a5f3ca8139916a09f11cfb66..8b8f89a571deb5d6640ab639f9afc6640d412711 100644 (file)
@@ -294,8 +294,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
 static char *
 human_access (struct stat const *statbuf)
 {
-  static char modebuf[11];
-  mode_string (statbuf->st_mode, modebuf);
+  static char modebuf[12];
+  filemodestring (statbuf, modebuf);
   modebuf[10] = 0;
   return modebuf;
 }