summaryrefslogtreecommitdiff
path: root/usr.sbin/edquota
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-06-15 17:08:26 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-06-15 17:08:26 +0000
commit45b686dfde4988d7122626c6bf1597314f955866 (patch)
treecce12674292d231dd4fdac3ce9bd27aa619d4481 /usr.sbin/edquota
parent67b2c561b5da7f2e2b3d68e6d111baccd19a63b5 (diff)
Check return value of getentry() for -1, not < 0 since it returns
an unsigned value; jon@oaktree.co.uk
Diffstat (limited to 'usr.sbin/edquota')
-rw-r--r--usr.sbin/edquota/edquota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c
index e578426bac7..7068dabd808 100644
--- a/usr.sbin/edquota/edquota.c
+++ b/usr.sbin/edquota/edquota.c
@@ -42,7 +42,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)edquota.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$Id: edquota.c,v 1.21 1999/01/03 10:06:35 deraadt Exp $";
+static char *rcsid = "$Id: edquota.c,v 1.22 1999/06/15 17:08:25 millert Exp $";
#endif /* not lint */
/*
@@ -149,7 +149,7 @@ main(argc, argv)
qup->dqblk.dqb_itime = 0;
}
while (argc-- > 0) {
- if ((id = getentry(*argv++, quotatype)) < 0)
+ if ((id = getentry(*argv++, quotatype)) == -1)
continue;
putprivs(id, quotatype, protoprivs);
}