diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-09-12 11:41:31 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-09-12 11:41:31 +0000 |
| commit | dfac825697674070ff717c02263d3aab9c9d62bd (patch) | |
| tree | d0a9241fb6cc89559109f7e769218add7566865b /libutil/pw_util.c | |
| parent | cdfbaf3700b5e6732bc50f13b3e65ef7c576086c (diff) | |
| parent | 9c04af5e0b95f4cebcc065c168ec58a4851b4764 (diff) | |
| download | pw-darwin-dfac825697674070ff717c02263d3aab9c9d62bd.tar.gz pw-darwin-dfac825697674070ff717c02263d3aab9c9d62bd.zip | |
Merge from head
Diffstat (limited to 'libutil/pw_util.c')
| -rw-r--r-- | libutil/pw_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libutil/pw_util.c b/libutil/pw_util.c index befd1fb..af749d5 100644 --- a/libutil/pw_util.c +++ b/libutil/pw_util.c @@ -226,7 +226,7 @@ pw_tmp(int mfd) errno = ENAMETOOLONG; return (-1); } - if ((tfd = mkstemp(tempname)) == -1) + if ((tfd = mkostemp(tempname, O_SYNC)) == -1) return (-1); if (mfd != -1) { while ((nr = read(mfd, buf, sizeof(buf))) > 0) |
