diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-12-04 10:43:32 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-12-04 10:44:14 +0200 |
commit | 8f2469e413757e12582b651b24f49b0fb0072a34 (patch) | |
tree | fa5a536a6d34dbce3b62881ec6041d5c48a5ef7a /main/musl/0002-fix-failure-of-open-to-read-variadic-mode-argument-f.patch | |
parent | 7086cc9b981d724f4b530ba21a844b602d947d7c (diff) | |
download | aports-8f2469e413757e12582b651b24f49b0fb0072a34.tar.bz2 aports-8f2469e413757e12582b651b24f49b0fb0072a34.tar.xz |
main/musl: cherry-pick fixes and compatibility improvements from upstream
Diffstat (limited to 'main/musl/0002-fix-failure-of-open-to-read-variadic-mode-argument-f.patch')
-rw-r--r-- | main/musl/0002-fix-failure-of-open-to-read-variadic-mode-argument-f.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/main/musl/0002-fix-failure-of-open-to-read-variadic-mode-argument-f.patch b/main/musl/0002-fix-failure-of-open-to-read-variadic-mode-argument-f.patch new file mode 100644 index 0000000000..887b38b32d --- /dev/null +++ b/main/musl/0002-fix-failure-of-open-to-read-variadic-mode-argument-f.patch @@ -0,0 +1,26 @@ +From 9d836ea7a69a6441fcdca815328d274e4ed6b707 Mon Sep 17 00:00:00 2001 +From: Rich Felker <dalias@aerifal.cx> +Date: Thu, 30 Oct 2014 20:03:56 -0400 +Subject: [PATCH] fix failure of open to read variadic mode argument for + O_TMPFILE + +--- + src/fcntl/open.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/fcntl/open.c b/src/fcntl/open.c +index 5e5be1d..3928a6e 100644 +--- a/src/fcntl/open.c ++++ b/src/fcntl/open.c +@@ -7,7 +7,7 @@ int open(const char *filename, int flags, ...) + { + mode_t mode = 0; + +- if (flags & O_CREAT) { ++ if ((flags & O_CREAT) || (flags & O_TMPFILE) == O_TMPFILE) { + va_list ap; + va_start(ap, flags); + mode = va_arg(ap, mode_t); +-- +2.2.0 + |