[arch-commits] Commit in sudo/trunk (PKGBUILD allow-preserve-env-with-arg.patch)
Evangelos Foutras
foutrelis at archlinux.org
Sat Aug 18 19:40:02 UTC 2018
Date: Saturday, August 18, 2018 @ 19:40:02
Author: foutrelis
Revision: 332510
upgpkg: sudo 1.8.24-1
New upstream release.
Modified:
sudo/trunk/PKGBUILD
Deleted:
sudo/trunk/allow-preserve-env-with-arg.patch
-----------------------------------+
PKGBUILD | 11 +++--------
allow-preserve-env-with-arg.patch | 35 -----------------------------------
2 files changed, 3 insertions(+), 43 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-18 19:37:11 UTC (rev 332509)
+++ PKGBUILD 2018-08-18 19:40:02 UTC (rev 332510)
@@ -4,9 +4,9 @@
# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
pkgname=sudo
-_sudover=1.8.23
+_sudover=1.8.24
pkgver=${_sudover/p/.p}
-pkgrel=2
+pkgrel=1
pkgdesc="Give certain users the ability to run some commands as root"
arch=('x86_64')
url="https://www.sudo.ws/sudo/"
@@ -16,19 +16,14 @@
backup=('etc/sudoers' 'etc/pam.d/sudo')
install=$pkgname.install
source=(https://www.sudo.ws/sudo/dist/$pkgname-$_sudover.tar.gz{,.sig}
- allow-preserve-env-with-arg.patch
sudo.pam)
-sha256sums=('d863d29b6fc87bc784a3223350e2b28a2ff2c4738f0fb8f1c92bb38c3017e679'
+sha256sums=('b488557a198ecef30b7ad4011b59a66232dec2364ad956e11d8e17906c225be8'
'SKIP'
- '439edd65dbc0115794dec833968c538c98a275522ec9a2e0ac3d4a9eb9cc3b33'
'd1738818070684a5d2c9b26224906aad69a4fea77aabd960fc2675aee2df1fa2')
validpgpkeys=('59D1E9CCBA2B376704FDD35BA9F4C021CEA470FB')
prepare() {
cd "$srcdir/$pkgname-$_sudover"
-
- # https://bugzilla.sudo.ws/show_bug.cgi?id=835
- patch -Np1 -i ../allow-preserve-env-with-arg.patch
}
build() {
Deleted: allow-preserve-env-with-arg.patch
===================================================================
--- allow-preserve-env-with-arg.patch 2018-08-18 19:37:11 UTC (rev 332509)
+++ allow-preserve-env-with-arg.patch 2018-08-18 19:40:02 UTC (rev 332510)
@@ -1,35 +0,0 @@
-
-# HG changeset patch
-# User Todd C. Miller <Todd.Miller at sudo.ws>
-# Date 1526483443 21600
-# Node ID 8ea75ca8fbd2de3877fed1b83a63d9ac8a9c14b1
-# Parent 7972215392428f23eb47c11ddffc0cc8a824fff0
-Only set MODE_PRESERVE_ENV when preserving the entire environment.
-Fixes a problem introduced in 1.8.23 where "sudo -i" could not be
-used in conjunction with --preserve-env=VARIABLE. Bug #835
-
-diff -r 797221539242 -r 8ea75ca8fbd2 src/parse_args.c
---- a/src/parse_args.c Tue May 15 16:35:07 2018 -0600
-+++ b/src/parse_args.c Wed May 16 09:10:43 2018 -0600
-@@ -330,14 +330,15 @@
- case 'E':
- /*
- * Optional argument is a comma-separated list of
-- * environment variables to preserve. If not present,
-- * preserve everything.
-+ * environment variables to preserve.
-+ * If not present, preserve everything.
- */
-- if (optarg == NULL)
-+ if (optarg == NULL) {
- sudo_settings[ARG_PRESERVE_ENVIRONMENT].value = "true";
-- else
-+ SET(flags, MODE_PRESERVE_ENV);
-+ } else {
- parse_env_list(&extra_env, optarg);
-- SET(flags, MODE_PRESERVE_ENV);
-+ }
- break;
- case 'e':
- if (mode && mode != MODE_EDIT)
-
More information about the arch-commits
mailing list