diff options
author | Alan Somers <asomers@FreeBSD.org> | 2016-11-18 16:07:08 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2016-11-18 16:07:08 +0000 |
commit | cbaba16b23124331498f0a6d48a4d71f4f20b508 (patch) | |
tree | 229b54f5e1d98024a318d18cab53e0ea1469b9fc /lib/libutil | |
parent | 34cd8ebdcfc8b88cfba92270f37e870dc00c47e8 (diff) | |
download | src-test2-cbaba16b23124331498f0a6d48a4d71f4f20b508.tar.gz src-test2-cbaba16b23124331498f0a6d48a4d71f4f20b508.zip |
Notes
Diffstat (limited to 'lib/libutil')
-rw-r--r-- | lib/libutil/gr_util.c | 2 | ||||
-rw-r--r-- | lib/libutil/pw_util.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/gr_util.c b/lib/libutil/gr_util.c index 93b3eb2f92fc..6153209eb2dc 100644 --- a/lib/libutil/gr_util.c +++ b/lib/libutil/gr_util.c @@ -141,7 +141,7 @@ gr_tmp(int mfd) errno = ENAMETOOLONG; return (-1); } - if ((tfd = mkostemp(tempname, O_SYNC)) == -1) + if ((tfd = mkostemp(tempname, 0)) == -1) return (-1); if (mfd != -1) { while ((nr = read(mfd, buf, sizeof(buf))) > 0) diff --git a/lib/libutil/pw_util.c b/lib/libutil/pw_util.c index 2838871d93f6..d7903281d7cc 100644 --- a/lib/libutil/pw_util.c +++ b/lib/libutil/pw_util.c @@ -225,7 +225,7 @@ pw_tmp(int mfd) errno = ENAMETOOLONG; return (-1); } - if ((tfd = mkostemp(tempname, O_SYNC)) == -1) + if ((tfd = mkostemp(tempname, 0)) == -1) return (-1); if (mfd != -1) { while ((nr = read(mfd, buf, sizeof(buf))) > 0) |