summaryrefslogtreecommitdiffstats
path: root/usr.sbin/quot
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2017-08-31 12:03:02 +0000
committerotto <otto@openbsd.org>2017-08-31 12:03:02 +0000
commit3025e2fb663eb465f33048956005c5bc9855a64c (patch)
treecdcabf261d00a2017d2cfd6f4db2d051ec12a642 /usr.sbin/quot
parentignoredups implementation quirk (diff)
downloadwireguard-openbsd-3025e2fb663eb465f33048956005c5bc9855a64c.tar.xz
wireguard-openbsd-3025e2fb663eb465f33048956005c5bc9855a64c.zip
assorted warning fixes; ok millert@
Diffstat (limited to 'usr.sbin/quot')
-rw-r--r--usr.sbin/quot/quot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c
index 896d8601634..74c5b902775 100644
--- a/usr.sbin/quot/quot.c
+++ b/usr.sbin/quot/quot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: quot.c,v 1.28 2015/11/12 22:33:07 deraadt Exp $ */
+/* $OpenBSD: quot.c,v 1.29 2017/08/31 12:03:02 otto Exp $ */
/*
* Copyright (C) 1991, 1994 Wolfgang Solfrank.
@@ -469,7 +469,7 @@ donames(int fd, struct fs *super, char *name)
ungetc(c, stdin);
inode1 = -1;
while (scanf("%llu", &inode) == 1) {
- if (inode < 0 || inode > maxino) {
+ if (inode > maxino) {
#ifndef COMPAT
fprintf(stderr, "invalid inode %llu\n",
(unsigned long long)inode);