diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2017-01-06 16:59:33 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2017-01-06 16:59:33 +0000 |
commit | 1c324569538099af34419e6818fbfde4779efd33 (patch) | |
tree | ebc1201ab230267c1270c833390c9a8b561d16ee /bin | |
parent | 6e89d383c70273e8c28b0f8a75ca3bd037ac4d5d (diff) | |
download | src-1c324569538099af34419e6818fbfde4779efd33.tar.gz src-1c324569538099af34419e6818fbfde4779efd33.zip |
Use type-independent formats for printing nlink_t and ino_t.
Extracted from: ino64 work by gleb, mckusick
Discussed with: mckusick
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=311522
Diffstat (limited to 'bin')
-rw-r--r-- | bin/pax/gen_subs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/pax/gen_subs.c b/bin/pax/gen_subs.c index 232ee779e489..0e2a1e8bf261 100644 --- a/bin/pax/gen_subs.c +++ b/bin/pax/gen_subs.c @@ -109,7 +109,8 @@ ls_list(ARCHD *arcn, time_t now, FILE *fp) */ if (strftime(f_date,DATELEN,timefrmt,localtime(&(sbp->st_mtime))) == 0) f_date[0] = '\0'; - (void)fprintf(fp, "%s%2u %-12s %-12s ", f_mode, sbp->st_nlink, + (void)fprintf(fp, "%s%2ju %-12s %-12s ", f_mode, + (uintmax_t)sbp->st_nlink, name_uid(sbp->st_uid, 1), name_gid(sbp->st_gid, 1)); /* |