diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-06-15 17:08:26 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-06-15 17:08:26 +0000 |
commit | 45b686dfde4988d7122626c6bf1597314f955866 (patch) | |
tree | cce12674292d231dd4fdac3ce9bd27aa619d4481 | |
parent | 67b2c561b5da7f2e2b3d68e6d111baccd19a63b5 (diff) |
Check return value of getentry() for -1, not < 0 since it returns
an unsigned value; jon@oaktree.co.uk
-rw-r--r-- | usr.sbin/edquota/edquota.c | 4 |
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); } |