pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/sudo Don't assume O_SEARCH implies support fo...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b58900200b8e
branches: trunk
changeset: 352547:b58900200b8e
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Fri Sep 16 11:50:37 2016 +0000
description:
Don't assume O_SEARCH implies support for O_DIRECTORY. Fixes SunOS.
diffstat:
security/sudo/distinfo | 3 ++-
security/sudo/patches/patch-src_sudo__edit.c | 18 ++++++++++++++++++
2 files changed, 20 insertions(+), 1 deletions(-)
diffs (36 lines):
diff -r 87c31cead07a -r b58900200b8e security/sudo/distinfo
--- a/security/sudo/distinfo Fri Sep 16 11:42:24 2016 +0000
+++ b/security/sudo/distinfo Fri Sep 16 11:50:37 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.87 2016/09/12 17:12:24 taca Exp $
+$NetBSD: distinfo,v 1.88 2016/09/16 11:50:37 jperkin Exp $
SHA1 (sudo-1.8.17p1.tar.gz) = e9bb729513cd15e99def42019c35917bc9a73536
RMD160 (sudo-1.8.17p1.tar.gz) = c3af867a6047c21614c4550534fa2566d6540913
@@ -10,3 +10,4 @@
SHA1 (patch-plugins_sudoers_Makefile.in) = d8612ac7bf2f5a892d9720c4df91810ca807f4ed
SHA1 (patch-plugins_sudoers_logging.c) = a42e54af2b6057804aecb3b6a48c565e8ac4df82
SHA1 (patch-src_Makefile.in) = 43f7266d3d106fca69003ee040342c3b201fd262
+SHA1 (patch-src_sudo__edit.c) = ef411520ccefbd36bb4adf3329e6144e54647372
diff -r 87c31cead07a -r b58900200b8e security/sudo/patches/patch-src_sudo__edit.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/sudo/patches/patch-src_sudo__edit.c Fri Sep 16 11:50:37 2016 +0000
@@ -0,0 +1,18 @@
+$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)
Home |
Main Index |
Thread Index |
Old Index