summaryrefslogtreecommitdiffstats
path: root/usr.sbin/quot
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-04-23 18:17:22 +0000
committerderaadt <deraadt@openbsd.org>2013-04-23 18:17:22 +0000
commit79d31f919c0b32330cb4199929abae8560bb0b7d (patch)
tree68032396cec8a3d9d4c546a27b537a943b8b3921 /usr.sbin/quot
parenthandle large ino_t; ok millert (diff)
downloadwireguard-openbsd-79d31f919c0b32330cb4199929abae8560bb0b7d.tar.xz
wireguard-openbsd-79d31f919c0b32330cb4199929abae8560bb0b7d.zip
handle large ino_t
Diffstat (limited to 'usr.sbin/quot')
-rw-r--r--usr.sbin/quot/quot.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c
index a9044ff8bbe..bf05e19155d 100644
--- a/usr.sbin/quot/quot.c
+++ b/usr.sbin/quot/quot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: quot.c,v 1.20 2009/10/27 23:59:54 deraadt Exp $ */
+/* $OpenBSD: quot.c,v 1.21 2013/04/23 18:18:59 deraadt Exp $ */
/*
* Copyright (C) 1991, 1994 Wolfgang Solfrank.
@@ -469,7 +469,8 @@ donames(int fd, struct fs *super, char *name)
while (scanf("%d", &inode) == 1) {
if (inode < 0 || inode > maxino) {
#ifndef COMPAT
- fprintf(stderr, "invalid inode %d\n", inode);
+ fprintf(stderr, "invalid inode %llu\n",
+ (unsigned long long)inode);
#endif
return;
}