aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/fmtree/create.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/fmtree/create.c')
-rw-r--r--usr.sbin/fmtree/create.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/fmtree/create.c b/usr.sbin/fmtree/create.c
index 8be9b02173ea..204f40abc15c 100644
--- a/usr.sbin/fmtree/create.c
+++ b/usr.sbin/fmtree/create.c
@@ -207,7 +207,8 @@ statf(int indent, FTSENT *p)
if (keys & F_MODE && (p->fts_statp->st_mode & MBITS) != mode)
output(indent, &offset, "mode=%#o", p->fts_statp->st_mode & MBITS);
if (keys & F_NLINK && p->fts_statp->st_nlink != 1)
- output(indent, &offset, "nlink=%u", p->fts_statp->st_nlink);
+ output(indent, &offset, "nlink=%ju",
+ (uintmax_t)p->fts_statp->st_nlink);
if (keys & F_SIZE && S_ISREG(p->fts_statp->st_mode))
output(indent, &offset, "size=%jd",
(intmax_t)p->fts_statp->st_size);