From 3d00e08659eab7e125b93043e3d100ce0429be55 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 23 Apr 2013 18:19:00 +0000 Subject: handle large ino_t --- usr.sbin/quot/quot.c | 5 +++-- 1 file 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; } -- cgit v1.2.3