Browse Source

When writing a new record in pw_copy() print the uid and gid as

unsigned, just like we do the existing records.  OK deraadt@
OPENBSD_5_5
millert 11 years ago
parent
commit
b5fa8ad952
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/lib/libutil/passwd.c

+ 2
- 2
src/lib/libutil/passwd.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: passwd.c,v 1.50 2013/04/29 00:28:23 okan Exp $ */
/* $OpenBSD: passwd.c,v 1.51 2013/08/06 22:47:43 millert Exp $ */
/*
* Copyright (c) 1987, 1993, 1994, 1995
@ -357,7 +357,7 @@ pw_copy(int ffd, int tfd, const struct passwd *pw, const struct passwd *opw)
goto fail;
}
if (!done)
(void)fprintf(to, "%s:%s:%d:%d:%s:%d:%d:%s:%s:%s\n",
(void)fprintf(to, "%s:%s:%u:%u:%s:%d:%d:%s:%s:%s\n",
pw->pw_name, pw->pw_passwd, pw->pw_uid, pw->pw_gid,
pw->pw_class, pw->pw_change, pw->pw_expire, pw->pw_gecos,
pw->pw_dir, pw->pw_shell);


Loading…
Cancel
Save