mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-27 07:52:55 +02:00
sudo: update to 1.8.9p4.
This commit is contained in:
parent
e1e99209db
commit
bcf902eaf8
2 changed files with 3 additions and 36 deletions
|
@ -1,33 +0,0 @@
|
||||||
# HG changeset patch
|
|
||||||
# User Todd C. Miller <Todd.Miller@courtesan.com>
|
|
||||||
# Date 1389722096 25200
|
|
||||||
# Node ID a204b69d91f786444899ce3fc95ed535b6e32d33
|
|
||||||
# Parent 987087ce465828da121b9d67412f42feaea06d56
|
|
||||||
If not logging I/O we may get EOF when the command is executed and
|
|
||||||
the other end of the backchannel is closed. Just remove the
|
|
||||||
backchannel event in this case or we will continue to receive
|
|
||||||
the event. Bug #631
|
|
||||||
|
|
||||||
--- src/exec.c Tue Jan 14 09:26:14 2014 -0700
|
|
||||||
+++ src/exec.c Tue Jan 14 10:54:56 2014 -0700
|
|
||||||
@@ -230,11 +230,14 @@
|
|
||||||
/* Short read or EOF. */
|
|
||||||
sudo_debug_printf(SUDO_DEBUG_ERROR,
|
|
||||||
"failed to read child status: %s", n ? "short read" : "EOF");
|
|
||||||
- /*
|
|
||||||
- * If not logging I/O we may get EOF when the command is
|
|
||||||
- * executed and sv is closed. It is safe to ignore this.
|
|
||||||
- */
|
|
||||||
- if (ec->log_io || n != 0) {
|
|
||||||
+ if (!ec->log_io && n == 0) {
|
|
||||||
+ /*
|
|
||||||
+ * If not logging I/O we may get EOF when the command is
|
|
||||||
+ * executed and the other end of the backchannel is closed.
|
|
||||||
+ * Just remove the event in this case.
|
|
||||||
+ */
|
|
||||||
+ (void)sudo_ev_del(ec->evbase, backchannel_event);
|
|
||||||
+ } else {
|
|
||||||
/* XXX - need new CMD_ type for monitor errors. */
|
|
||||||
errno = n ? EIO : ECONNRESET;
|
|
||||||
ec->cstat->type = CMD_ERRNO;
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template build file for 'sudo'.
|
# Template build file for 'sudo'.
|
||||||
pkgname=sudo
|
pkgname=sudo
|
||||||
version=1.8.9p3
|
version=1.8.9p4
|
||||||
revision=2
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-ignore-dot -with-all-insults --with-env-editor
|
configure_args="--with-ignore-dot -with-all-insults --with-env-editor
|
||||||
--enable-shell-sets-home --enable-noargs-shell --without-sendmail
|
--enable-shell-sets-home --enable-noargs-shell --without-sendmail
|
||||||
|
@ -13,7 +13,7 @@ maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.gratisoft.us/sudo/"
|
homepage="http://www.gratisoft.us/sudo/"
|
||||||
license="ISC, BSD, zlib"
|
license="ISC, BSD, zlib"
|
||||||
distfiles="http://www.courtesan.com/sudo/dist/$pkgname-$version.tar.gz"
|
distfiles="http://www.courtesan.com/sudo/dist/$pkgname-$version.tar.gz"
|
||||||
checksum=a2b1f0ec8aeb929c8430b1514cb53e2c2f882ea26cbb43426883d1cb6d22c5b7
|
checksum=1943f9e9409c6542935d2e2d862c48d0d69dcf27288b294b8b537c02f52ac7a7
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vinstall ${FILESDIR}/sudo.pam 644 etc/pam.d sudo
|
vinstall ${FILESDIR}/sudo.pam 644 etc/pam.d sudo
|
||||||
|
|
Loading…
Add table
Reference in a new issue