summaryrefslogtreecommitdiff
path: root/usr.sbin/quot
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-23 18:19:00 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-23 18:19:00 +0000
commit3d00e08659eab7e125b93043e3d100ce0429be55 (patch)
treee6d72df05d720b6cd631471e12e6aa3fcf42eafb /usr.sbin/quot
parentf49ac914bb876c57cf9c071b9e9da98e9738f80c (diff)
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;
}