From: Paul Eggert Date: Mon, 17 Apr 2006 23:23:43 +0000 (+0000) Subject: (human_access): Use (new) filemodestring rather than X-Git-Tag: v6.0~470 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d918aff890c261d38cce047461a4172c74718554;p=thirdparty%2Fcoreutils.git (human_access): Use (new) filemodestring rather than (old) mode_string, so that we get more file types right, at least in theory. Adjust to filemode changes. --- diff --git a/src/stat.c b/src/stat.c index fd5f8bd313..8b8f89a571 100644 --- a/src/stat.c +++ b/src/stat.c @@ -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; }