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

Allan McRae allan at archlinux.org
Thu Mar 3 23:23:22 UTC 2011


    Date: Thursday, March 3, 2011 @ 18:23:22
  Author: allan
Revision: 112108

upgpkg: sudo 1.8.0-2
fix sudo -l bug

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

--------------+
 PKGBUILD     |    6 +++++-
 sudo_l.patch |   21 +++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-03-03 23:21:56 UTC (rev 112107)
+++ PKGBUILD	2011-03-03 23:23:22 UTC (rev 112108)
@@ -5,7 +5,7 @@
 pkgname=sudo
 _ver=1.8.0
 pkgver=${_ver/[a-z]/.${_ver//[0-9.]/}}
-pkgrel=1
+pkgrel=2
 pkgdesc="Give certain users the ability to run some commands as root"
 arch=('i686' 'x86_64')
 url="http://www.sudo.ws/sudo/"
@@ -13,14 +13,18 @@
 depends=('glibc' 'pam')
 backup=('etc/sudoers' 'etc/pam.d/sudo')
 source=(ftp://ftp.sudo.ws/pub/sudo/$pkgname-$_ver.tar.gz
+	sudo_l.patch
         sudo.pam)
 options=('!libtool' '!makeflags')
 md5sums=('fa0a35330691af14cb1869f64a65aebc'
+         '29656b2f2365e14fa0f8eb94e61f3690'
          '4e7ad4ec8f2fe6a40e12bcb2c0b256e3')
 
 build() {
   cd $srcdir/$pkgname-$_ver
 
+  patch -Np1 -i $srcdir/sudo_l.patch
+
   ./configure --prefix=/usr --with-pam --libexecdir=/usr/lib \
     --with-env-editor --with-all-insults --with-logfac=auth
   make

Added: sudo_l.patch
===================================================================
--- sudo_l.patch	                        (rev 0)
+++ sudo_l.patch	2011-03-03 23:23:22 UTC (rev 112108)
@@ -0,0 +1,21 @@
+diff -r df1bb67fb168 plugins/sudoers/sudo_nss.c
+--- a/plugins/sudoers/sudo_nss.c	Wed Mar 02 12:39:11 2011 -0500
++++ b/plugins/sudoers/sudo_nss.c	Thu Mar 03 09:37:48 2011 -0500
+@@ -309,6 +309,7 @@
+ /*
+  * Check user_cmnd against sudoers and print the matching entry if the
+  * command is allowed.
++ * Returns TRUE if the command is allowed, else FALSE.
+  */
+ int
+ display_cmnd(struct sudo_nss_list *snl, struct passwd *pw)
+@@ -320,7 +321,7 @@
+ 
+     tq_foreach_fwd(snl, nss) {
+ 	if (nss->display_cmnd(nss, pw) == 0)
+-	    return 0;
++	    return TRUE;
+     }
+-    return 1;
++    return FALSE;
+ }




More information about the arch-commits mailing list