[mirmince commits] {mirmince} branch master updated. d784fc66492254abdcae6e6fb768e6079f56ac5a
tg at freewrt.org
tg at freewrt.org
Sat Aug 10 12:15:48 UTC 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Main git repository for FreeWRT project mirmince".
The branch, master has been updated
via d784fc66492254abdcae6e6fb768e6079f56ac5a (commit)
from 8766f7baa3f2277f64a463e5d9f348149f4e1a90 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d784fc66492254abdcae6e6fb768e6079f56ac5a
Author: Thorsten Glaser <tg at mirbsd.org>
Date: Sat Aug 10 12:15:51 2013 +0000
those linux kernel developers are horrid people; O_TMPFILE kludge
caused by git commit bb458c644a59dbba3a1fe59b27106c5e68e1c4bd
-----------------------------------------------------------------------
Summary of changes:
osdep/linux/open.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/osdep/linux/open.c b/osdep/linux/open.c
index 2f66f01..874a315 100644
--- a/osdep/linux/open.c
+++ b/osdep/linux/open.c
@@ -24,12 +24,20 @@
extern int _open__(const char *path, int oflag, mirmince_ureg mode)
mirmincE_cc__open__;
+#define NEEDS_MODE_CREAT O_CREAT
+
+#ifdef O_TMPFILE
+#define NEEDS_MODE_TMPFILE __O_TMPFILE
+#else
+#define NEEDS_MODE_TMPFILE 0
+#endif
+
mirmincE_cc_open int
open(const char *path, int oflag, ...)
{
mode_t mode;
- if (oflag & O_CREAT) {
+ if (oflag & (NEEDS_MODE_CREAT | NEEDS_MODE_TMPFILE)) {
va_list ap;
va_start(ap, oflag);
hooks/post-receive
--
Main git repository for FreeWRT project mirmince
(FreeWRT project mirmince repository mirmince)
More information about the mirmince-commits
mailing list