diff options
| author | Neel Natu <neel@FreeBSD.org> | 2012-11-11 03:26:14 +0000 |
|---|---|---|
| committer | Neel Natu <neel@FreeBSD.org> | 2012-11-11 03:26:14 +0000 |
| commit | 8e590746284079c30ad1a08ef3410a62f5acc333 (patch) | |
| tree | 39860234c3deda7de976cccc795de42ae7b0aa77 /libutil | |
| parent | 235c3539045381ef78a5d0d16e4e60e4c2b97a7b (diff) | |
| parent | 32215e1fded83eb454a0ec2522dbd53877e5a384 (diff) | |
| download | pw-darwin-8e590746284079c30ad1a08ef3410a62f5acc333.tar.gz pw-darwin-8e590746284079c30ad1a08ef3410a62f5acc333.zip | |
IFC @ r242684
Diffstat (limited to 'libutil')
| -rw-r--r-- | libutil/gr_util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libutil/gr_util.c b/libutil/gr_util.c index 0173595..6d96d5e 100644 --- a/libutil/gr_util.c +++ b/libutil/gr_util.c @@ -63,6 +63,7 @@ static const char group_line_format[] = "%s:%s:%ju:"; int gr_init(const char *dir, const char *group) { + if (dir == NULL) { strcpy(group_dir, _PATH_ETC); } else { @@ -88,6 +89,7 @@ gr_init(const char *dir, const char *group) } strcpy(group_file, group); } + initialized = 1; return (0); } |
