summaryrefslogtreecommitdiffstats
path: root/pw/pw_conf.c
diff options
context:
space:
mode:
authorDavid Nugent <davidn@FreeBSD.org>1999-02-23 07:15:11 +0000
committerDavid Nugent <davidn@FreeBSD.org>1999-02-23 07:15:11 +0000
commit9b902300660a81e65108ffaa5289722e09526d43 (patch)
tree4debe9fd3ea8e8f60b866076ba6adeeccdcf21f8 /pw/pw_conf.c
parentb4807366e2f2f1d630c4f6afaf65ce9941db6c84 (diff)
downloadpw-darwin-9b902300660a81e65108ffaa5289722e09526d43.tar.gz
pw-darwin-9b902300660a81e65108ffaa5289722e09526d43.tar.zst
pw-darwin-9b902300660a81e65108ffaa5289722e09526d43.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.c5
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: