diff options
| author | David Nugent <davidn@FreeBSD.org> | 1999-02-23 07:15:11 +0000 |
|---|---|---|
| committer | David Nugent <davidn@FreeBSD.org> | 1999-02-23 07:15:11 +0000 |
| commit | e3d97c779d907e3556a40a69b84f001d95cf4d6a (patch) | |
| tree | 40243c698d7a8550872dda80789eb5b3f487c65e /pw/pw_conf.c | |
| parent | e5cf543fa1fda398fa1207e1338b79c3efcf3f54 (diff) | |
| download | pw-darwin-e3d97c779d907e3556a40a69b84f001d95cf4d6a.tar.gz pw-darwin-e3d97c779d907e3556a40a69b84f001d95cf4d6a.zip | |
1) Do not blindly ignore file update errors which may occur due to concurrent
updating
2) Add -V <etcdir>, which allows maintaining user/group database in alternate
locations other than /etc.
Diffstat (limited to 'pw/pw_conf.c')
| -rw-r--r-- | pw/pw_conf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pw/pw_conf.c b/pw/pw_conf.c index 63742a7..dc1bd61 100644 --- a/pw/pw_conf.c +++ b/pw/pw_conf.c @@ -26,7 +26,7 @@ #ifndef lint static const char rcsid[] = - "$Id$"; + "$Id: pw_conf.c,v 1.7 1997/10/10 06:23:36 charnier Exp $"; #endif /* not lint */ #include <string.h> @@ -34,7 +34,6 @@ static const char rcsid[] = #include <fcntl.h> #include "pw.h" -#include "pwupd.h" #define debugging 0 @@ -310,7 +309,7 @@ read_userconfig(char const * file) break; case _UC_DEFAULTGROUP: q = unquote(q); - config.default_group = (q == NULL || !boolean_val(q, 1) || getgrnam(q) == NULL) + config.default_group = (q == NULL || !boolean_val(q, 1) || GETGRNAM(q) == NULL) ? NULL : newstr(q); break; case _UC_EXTRAGROUPS: |
