summaryrefslogtreecommitdiff
path: root/usr.sbin/pwd_mkdb
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2001-09-17 14:30:40 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2001-09-17 14:30:40 +0000
commit0e3265e9b0baf801c78b0f7777744af44425c7e3 (patch)
treefe427ad33814acc327cf98dc3ce388384fc18ed9 /usr.sbin/pwd_mkdb
parentff52586f8610bccbd04f419aed43f36a9123745d (diff)
skip to uid field, not gid
millert@ ok
Diffstat (limited to 'usr.sbin/pwd_mkdb')
-rw-r--r--usr.sbin/pwd_mkdb/pwd_mkdb.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c
index fe0b85921d7..e154334725f 100644
--- a/usr.sbin/pwd_mkdb/pwd_mkdb.c
+++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pwd_mkdb.c,v 1.25 2001/08/16 18:22:04 millert Exp $ */
+/* $OpenBSD: pwd_mkdb.c,v 1.26 2001/09/17 14:30:39 mpech Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -45,7 +45,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "from: @(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94";
#else
-static char *rcsid = "$OpenBSD: pwd_mkdb.c,v 1.25 2001/08/16 18:22:04 millert Exp $";
+static char *rcsid = "$OpenBSD: pwd_mkdb.c,v 1.26 2001/09/17 14:30:39 mpech Exp $";
#endif
#endif /* not lint */
@@ -201,8 +201,9 @@ main(argc, argv)
char *p = (char *)data.data;
/* Skip to uid field */
while (*p++ != '\0')
- while (*p++ != '\0')
- ;
+ ;
+ while (*p++ != '\0')
+ ;
memcpy(&olduid, p, sizeof(olduid));
} else
olduid = UID_MAX;