[arch-commits] Commit in sudo/trunk (PKGBUILD sudo_noninteractive.patch)

Allan McRae allan at archlinux.org
Tue Mar 8 13:08:35 UTC 2011


    Date: Tuesday, March 8, 2011 @ 08:08:35
  Author: allan
Revision: 113374

upgpkg: sudo 1.8.0-4
another upstream bug fix...  FS#23172

Added:
  sudo/trunk/sudo_noninteractive.patch
Modified:
  sudo/trunk/PKGBUILD

---------------------------+
 PKGBUILD                  |    7 ++++++-
 sudo_noninteractive.patch |   15 +++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-03-08 13:05:55 UTC (rev 113373)
+++ PKGBUILD	2011-03-08 13:08:35 UTC (rev 113374)
@@ -5,7 +5,7 @@
 pkgname=sudo
 _ver=1.8.0
 pkgver=${_ver/[a-z]/.${_ver//[0-9.]/}}
-pkgrel=3
+pkgrel=4
 pkgdesc="Give certain users the ability to run some commands as root"
 arch=('i686' 'x86_64')
 url="http://www.sudo.ws/sudo/"
@@ -15,11 +15,13 @@
 source=(ftp://ftp.sudo.ws/pub/sudo/$pkgname-$_ver.tar.gz
 	sudo_l.patch
 	sudo_validate_exitval.patch
+	sudo_noninteractive.patch
         sudo.pam)
 options=('!libtool' '!makeflags')
 md5sums=('fa0a35330691af14cb1869f64a65aebc'
          '29656b2f2365e14fa0f8eb94e61f3690'
          '4751aa5557fe43fd8e03e0c7b5affcfc'
+         '47d152ade2c9a726684fa1227e46bfe3'
          '4e7ad4ec8f2fe6a40e12bcb2c0b256e3')
 
 build() {
@@ -31,6 +33,9 @@
   # http://www.sudo.ws/bugs/show_bug.cgi?id=479
   patch -Np1 -i $srcdir/sudo_validate_exitval.patch
 
+  # http://www.sudo.ws/bugs/show_bug.cgi?id=478
+  patch -Np1 -i $srcdir/sudo_noninteractive.patch
+
   ./configure --prefix=/usr --with-pam --libexecdir=/usr/lib \
     --with-env-editor --with-all-insults --with-logfac=auth
   make

Added: sudo_noninteractive.patch
===================================================================
--- sudo_noninteractive.patch	                        (rev 0)
+++ sudo_noninteractive.patch	2011-03-08 13:08:35 UTC (rev 113374)
@@ -0,0 +1,15 @@
+diff -r fc3dd3be67e9 plugins/sudoers/sudoers.c
+--- a/plugins/sudoers/sudoers.c	Sat Mar 05 15:34:30 2011 -0500
++++ b/plugins/sudoers/sudoers.c	Sun Mar 06 15:35:39 2011 -0500
+@@ -1172,6 +1172,11 @@
+ 		SET(flags, MODE_IGNORE_TICKET);
+ 	    continue;
+ 	}
++	if (MATCHES(*cur, "noninteractive=")) {
++	    if (atobool(*cur + sizeof("noninteractive=") - 1) == TRUE)
++		SET(flags, MODE_NONINTERACTIVE);
++	    continue;
++	}
+ 	if (MATCHES(*cur, "sudoedit=")) {
+ 	    if (atobool(*cur + sizeof("sudoedit=") - 1) == TRUE)
+ 		SET(flags, MODE_EDIT);




More information about the arch-commits mailing list