git: d3aca6fe9bf9 - stable/12 - fuser: restore functionality by fixing fsid type
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Nov 2021 06:01:06 UTC
The branch stable/12 has been updated by avg:
URL: https://cgit.FreeBSD.org/src/commit/?id=d3aca6fe9bf97ea22bb9bee365b616bcb77a1220
commit d3aca6fe9bf97ea22bb9bee365b616bcb77a1220
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:59:01 +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;
};