summaryrefslogtreecommitdiff
path: root/security/sudo/patches
diff options
context:
space:
mode:
Diffstat (limited to 'security/sudo/patches')
-rw-r--r--security/sudo/patches/patch-src_sudo__edit.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/security/sudo/patches/patch-src_sudo__edit.c b/security/sudo/patches/patch-src_sudo__edit.c
deleted file mode 100644
index 80fd3706b4a..00000000000
--- a/security/sudo/patches/patch-src_sudo__edit.c
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-src_sudo__edit.c,v 1.1 2016/09/16 11:50:38 jperkin Exp $
-
-Don't assume O_SEARCH implies support for O_DIRECTORY.
-
---- src/sudo_edit.c.orig 2016-06-18 02:44:21.000000000 +0000
-+++ src/sudo_edit.c
-@@ -347,7 +347,11 @@ dir_is_writable(int dfd, struct user_det
- * Use O_SEARCH/O_PATH and/or O_DIRECTORY where possible.
- */
- #if defined(O_SEARCH)
-+# if defined(O_DIRECTORY)
- # define DIR_OPEN_FLAGS (O_SEARCH|O_DIRECTORY)
-+# else
-+# define DIR_OPEN_FLAGS (O_SEARCH)
-+# endif
- #elif defined(O_PATH)
- # define DIR_OPEN_FLAGS (O_PATH|O_DIRECTORY)
- #elif defined(O_DIRECTORY)