aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2021-11-01 06:40:17 +0000
committerAndriy Gapon <avg@FreeBSD.org>2021-11-01 06:45:26 +0000
commite18fbe6f19ed106f035c7d2aaeade6eb55cc0b5a (patch)
treee19ace30c40342af8935e68da78eee72ac2c9b75
parent91feb4f42075e2d7c8d6d50cd5faa651ab3a0e7d (diff)
downloadsrc-e18fbe6f19ed106f035c7d2aaeade6eb55cc0b5a.tar.gz
src-e18fbe6f19ed106f035c7d2aaeade6eb55cc0b5a.zip
fuser: restore functionality by fixing fsid type
Use types from sys/stat.h for the filesystem and inode numbers for extra safety. PR: 259504 Reported by: Markus Wild <freebsd-bugs@virtualtec.ch> MFC after: 1 week
-rw-r--r--usr.bin/fstat/fuser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fstat/fuser.c b/usr.bin/fstat/fuser.c
index b4225328fc1f..ad4aebf4a2cb 100644
--- a/usr.bin/fstat/fuser.c
+++ b/usr.bin/fstat/fuser.c
@@ -92,8 +92,8 @@ struct consumer {
STAILQ_ENTRY(consumer) next;
};
struct reqfile {
- uint32_t fsid;
- uint64_t fileid;
+ dev_t fsid;
+ ino_t fileid;
const char *name;
STAILQ_HEAD(, consumer) consumers;
};