git: df838c540632 - stable/13 - fuser: restore functionality by fixing fsid type
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Nov 2021 05:55:55 UTC
The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=df838c540632ce3840f78a9067dd9de32458c71a commit df838c540632ce3840f78a9067dd9de32458c71a Author: Andriy Gapon <avg@FreeBSD.org> AuthorDate: 2021-11-01 06:40:17 +0000 Commit: Andriy Gapon <avg@FreeBSD.org> CommitDate: 2021-11-08 05:55:30 +0000 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 (cherry picked from commit e18fbe6f19ed106f035c7d2aaeade6eb55cc0b5a) --- usr.bin/fstat/fuser.c | 4 ++-- 1 file 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; };