summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-04-24 14:06:41 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2023-04-24 14:06:41 -0700
commit97adb49f052e70455c3529509885f8aa3b40c370 (patch)
treec646f53d8bad336e9a7b2e8bed527b2217334cab /include
parente2eff52ce512ec725f9f1daf975c45a499be1e1e (diff)
parent43b450632676fb60e9faeddff285d9fac94a4f58 (diff)
downloadlinux-stable-97adb49f052e70455c3529509885f8aa3b40c370.tar.gz
linux-stable-97adb49f052e70455c3529509885f8aa3b40c370.tar.bz2
linux-stable-97adb49f052e70455c3529509885f8aa3b40c370.zip
Merge tag 'v6.4/vfs.open' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
Pull vfs open fixlet from Christian Brauner: "EINVAL ist keinmal: This contains the changes to make O_DIRECTORY when specified together with O_CREAT an invalid request. The wider background is that a regression report about the behavior of O_DIRECTORY | O_CREAT was sent to fsdevel about a behavior that was changed multiple years and LTS releases earlier during v5.7 development. This has also been covered in https://lwn.net/Articles/926782/ which provides an excellent summary of the discussion" * tag 'v6.4/vfs.open' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs: open: return EINVAL for O_DIRECTORY | O_CREAT
Diffstat (limited to 'include')
-rw-r--r--include/uapi/asm-generic/fcntl.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/uapi/asm-generic/fcntl.h b/include/uapi/asm-generic/fcntl.h
index 1ecdb911add8..80f37a0d40d7 100644
--- a/include/uapi/asm-generic/fcntl.h
+++ b/include/uapi/asm-generic/fcntl.h
@@ -91,7 +91,6 @@
/* a horrid kludge trying to make sure that this will fail on old kernels */
#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