pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/security/sudo
Module Name: pkgsrc
Committed By: jperkin
Date: Fri Sep 16 11:50:38 UTC 2016
Modified Files:
pkgsrc/security/sudo: distinfo
Added Files:
pkgsrc/security/sudo/patches: patch-src_sudo__edit.c
Log Message:
Don't assume O_SEARCH implies support for O_DIRECTORY. Fixes SunOS.
To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 pkgsrc/security/sudo/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/security/sudo/patches/patch-src_sudo__edit.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/security/sudo/distinfo
diff -u pkgsrc/security/sudo/distinfo:1.87 pkgsrc/security/sudo/distinfo:1.88
--- pkgsrc/security/sudo/distinfo:1.87 Mon Sep 12 17:12:24 2016
+++ pkgsrc/security/sudo/distinfo Fri Sep 16 11:50:37 2016
@@ -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-ag) = cb03a0a7daf4b5ef203f23
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
Added files:
Index: pkgsrc/security/sudo/patches/patch-src_sudo__edit.c
diff -u /dev/null pkgsrc/security/sudo/patches/patch-src_sudo__edit.c:1.1
--- /dev/null Fri Sep 16 11:50:38 2016
+++ pkgsrc/security/sudo/patches/patch-src_sudo__edit.c Fri Sep 16 11:50:38 2016
@@ -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