diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-11-01 23:57:12 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-11-01 23:57:12 -0700 |
commit | aafff91ac835a4d451890a4549582d575af8e8c0 (patch) | |
tree | de173a45c59c4accf9b9ca52da71c41ebe3121d7 /env_universal_common.cpp | |
parent | 4b6639f6974d14cf091beadd68041f7957415071 (diff) |
Fix tests on FreeBSD
FreeBSD throws errors if you pass flags like O_WRONLY to mkostemp.
Pass only O_CLOEXEC.
Diffstat (limited to 'env_universal_common.cpp')
-rw-r--r-- | env_universal_common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/env_universal_common.cpp b/env_universal_common.cpp index 88ec7749..fd188e8a 100644 --- a/env_universal_common.cpp +++ b/env_universal_common.cpp @@ -568,7 +568,7 @@ bool env_universal_t::open_temporary_file(const wcstring &directory, wcstring *o int result_fd = -1; char *narrow_str = wcs2str(tmp_name_template.c_str()); #if HAVE_MKOSTEMP - result_fd = mkostemp(narrow_str, O_WRONLY | O_CREAT | O_EXCL | O_TRUNC | O_CLOEXEC); + result_fd = mkostemp(narrow_str, O_CLOEXEC); if (result_fd >= 0) { tmp_name = str2wcstring(narrow_str); |