diff options
| author | Neel Natu <neel@FreeBSD.org> | 2012-12-04 04:37:42 +0000 |
|---|---|---|
| committer | Neel Natu <neel@FreeBSD.org> | 2012-12-04 04:37:42 +0000 |
| commit | 1af8005a676fd422a362171657eb20e2c6659764 (patch) | |
| tree | 1ebab03d8ac0e39cc004fa5f18d0d30b5f133685 /libutil | |
| parent | 6307d1bb658eb571c71944b0a18ed1d20e41a4c3 (diff) | |
| parent | 81179599728d1703dc83cc8052f6e5e0dcfb851b (diff) | |
| download | pw-darwin-1af8005a676fd422a362171657eb20e2c6659764.tar.gz pw-darwin-1af8005a676fd422a362171657eb20e2c6659764.zip | |
IFC @r243836
Diffstat (limited to 'libutil')
| -rw-r--r-- | libutil/gr_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libutil/gr_util.c b/libutil/gr_util.c index 6d96d5e..be34395 100644 --- a/libutil/gr_util.c +++ b/libutil/gr_util.c @@ -318,6 +318,9 @@ gr_copy(int ffd, int tfd, const struct group *gr, struct group *old_gr) int gr_mkdb(void) { + if (chmod(tempname, 0644) != 0) + return (-1); + return (rename(tempname, group_file)); } |
