This patch will upgrade Sudo version 1.8.6 patchlevel 2 to Sudo version 1.8.6 patchlevel 2. To apply: $ cd sudo-1.8.6p1 $ patch -p1 < sudo-1.8.6p2.patch diff -urNa sudo-1.8.6p1/ChangeLog sudo-1.8.6p2/ChangeLog --- sudo-1.8.6p1/ChangeLog Wed Sep 12 15:34:42 2012 +++ sudo-1.8.6p2/ChangeLog Mon Sep 17 02:21:04 2012 @@ -1,3 +1,15 @@ +2012-09-16 Todd C. Miller + + * NEWS, configure, configure.in: + Sudo 1.8.6p2 + [6e32496280f2] + + * src/exec.c: + When setting the signal handler for SIGTSTP to the default value in + non-I/O log mode, store the old handler value for when we restore it + after resume. + [242628694e42] + 2012-09-12 Todd C. Miller * NEWS: diff -urNa sudo-1.8.6p1/NEWS sudo-1.8.6p2/NEWS --- sudo-1.8.6p1/NEWS Wed Sep 12 15:14:27 2012 +++ sudo-1.8.6p2/NEWS Sun Sep 16 21:04:55 2012 @@ -1,3 +1,9 @@ +What's new in Sudo 1.8.6p2? + + * Fixed suspending a command after it has already been resumed + once when I/O logging (or use_pty) is not enabled. + This was a regression introduced in version 1.8.6. + What's new in Sudo 1.8.6p1? * Fixed the setting of LOGNAME, USER and USERNAME variables in the diff -urNa sudo-1.8.6p1/configure sudo-1.8.6p2/configure --- sudo-1.8.6p1/configure Wed Sep 12 14:39:40 2012 +++ sudo-1.8.6p2/configure Sun Sep 16 21:04:56 2012 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.68 for sudo 1.8.6p1. +# Generated by GNU Autoconf 2.68 for sudo 1.8.6p2. # # Report bugs to . # @@ -570,8 +570,8 @@ # Identity of this package. PACKAGE_NAME='sudo' PACKAGE_TARNAME='sudo' -PACKAGE_VERSION='1.8.6p1' -PACKAGE_STRING='sudo 1.8.6p1' +PACKAGE_VERSION='1.8.6p2' +PACKAGE_STRING='sudo 1.8.6p2' PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/' PACKAGE_URL='' @@ -1468,7 +1468,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures sudo 1.8.6p1 to adapt to many kinds of systems. +\`configure' configures sudo 1.8.6p2 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1533,7 +1533,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of sudo 1.8.6p1:";; + short | recursive ) echo "Configuration of sudo 1.8.6p2:";; esac cat <<\_ACEOF @@ -1759,7 +1759,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -sudo configure 1.8.6p1 +sudo configure 1.8.6p2 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. @@ -2463,7 +2463,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by sudo $as_me 1.8.6p1, which was +It was created by sudo $as_me 1.8.6p2, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -21495,7 +21495,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by sudo $as_me 1.8.6p1, which was +This file was extended by sudo $as_me 1.8.6p2, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -21561,7 +21561,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -sudo config.status 1.8.6p1 +sudo config.status 1.8.6p2 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" diff -urNa sudo-1.8.6p1/configure.in sudo-1.8.6p2/configure.in --- sudo-1.8.6p1/configure.in Wed Sep 12 14:38:22 2012 +++ sudo-1.8.6p2/configure.in Sun Sep 16 21:04:56 2012 @@ -3,7 +3,7 @@ dnl dnl Copyright (c) 1994-1996,1998-2012 Todd C. Miller dnl -AC_INIT([sudo], [1.8.6p1], [http://www.sudo.ws/bugs/], [sudo]) +AC_INIT([sudo], [1.8.6p2], [http://www.sudo.ws/bugs/], [sudo]) AC_CONFIG_HEADER([config.h pathnames.h]) dnl dnl Note: this must come after AC_INIT diff -urNa sudo-1.8.6p1/src/exec.c sudo-1.8.6p2/src/exec.c --- sudo-1.8.6p1/src/exec.c Tue Sep 4 09:10:41 2012 +++ sudo-1.8.6p2/src/exec.c Sun Sep 16 18:43:33 2012 @@ -576,7 +576,7 @@ zero_bytes(&sa, sizeof(sa)); sigemptyset(&sa.sa_mask); sa.sa_handler = SIG_DFL; - sigaction(SIGTSTP, &sa, NULL); + sigaction(SIGTSTP, &sa, &osa); } if (kill(getpid(), signo) != 0) warning("kill(%d, SIG%s)", (int)getpid(), signame);