]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: fix the way to print stat.st_nlink
authorMasatake YAMATO <yamato@redhat.com>
Thu, 10 Feb 2022 07:14:11 +0000 (16:14 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 10 Feb 2022 07:14:17 +0000 (16:14 +0900)
commit1801c172a336b2d01f9e4bf3befaca188a6c0d0f
tree91d37b92d63d3a6da61337091c20fcca4e26df07
parente438aee7d10ebf3c50360c90a324b40df4906a93
lsfd: fix the way to print stat.st_nlink

The type used for casting the member was too small; for the
"%ju" format spec, we should use uintmax_t for the purpose.

This change may fix the bug reported in
https://github.com/util-linux/util-linux/issues/1511#issuecomment-1033697617
in GitHub#1511 by Anatoly Pugachev <matorola@gmail.com>.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-file.c