diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2013-07-20 03:11:32 +0400 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2019-05-02 15:51:38 +0200 |
| commit | 78b1eb1bc375a51902a6b1114f1b6a05edd49b6c (patch) | |
| tree | 5e4f0391df4e49323bbbaab0ccd2c3ba6b73d301 /include/uapi/asm-generic/fcntl.h | |
| parent | 4580b5fb67ef2544f0bc391418f762dc62086306 (diff) | |
allow O_TMPFILE to work with O_WRONLY
Change-Id: I90171d1b53a4c35bfa76757ecfdfb6f95330d107
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/uapi/asm-generic/fcntl.h')
| -rw-r--r-- | include/uapi/asm-generic/fcntl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/asm-generic/fcntl.h b/include/uapi/asm-generic/fcntl.h index 05ac354e1..95e46c8e0 100644 --- a/include/uapi/asm-generic/fcntl.h +++ b/include/uapi/asm-generic/fcntl.h @@ -89,8 +89,8 @@ #endif /* a horrid kludge trying to make sure that this will fail on old kernels */ -#define O_TMPFILE (__O_TMPFILE | O_DIRECTORY | O_RDWR) -#define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT | O_ACCMODE) +#define O_TMPFILE (__O_TMPFILE | O_DIRECTORY) +#define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT) #ifndef O_NDELAY #define O_NDELAY O_NONBLOCK |
