]> git.proxmox.com Git - mirror_lxc.git/commitdiff
syscall_wrappers: fix PROTECT_OPEN_W macro
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 4 Feb 2021 15:06:43 +0000 (16:06 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 4 Feb 2021 18:49:32 +0000 (19:49 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/syscall_wrappers.h

index afeb421d72aeccc3d215435886fa908b433c3f16..c1a861e2f7bf8c3e70b9c17b778ddfc91873c7ab 100644 (file)
@@ -271,7 +271,7 @@ struct lxc_open_how {
 #define PROTECT_OPEN (PROTECT_OPEN_WITH_TRAILING_SYMLINKS | O_NOFOLLOW)
 
 #define PROTECT_OPEN_W_WITH_TRAILING_SYMLINKS (O_CLOEXEC | O_NOCTTY | O_WRONLY)
-#define PROTECT_OPEN_W (PROTECT_OPEN_WITH_TRAILING_SYMLINKS | O_NOFOLLOW)
+#define PROTECT_OPEN_W (PROTECT_OPEN_W_WITH_TRAILING_SYMLINKS | O_NOFOLLOW)
 
 #ifndef HAVE_OPENAT2
 static inline int openat2(int dfd, const char *filename, struct lxc_open_how *how, size_t size)