This patch will upgrade Sudo version 1.9.6 to Sudo version 1.9.6 patchlevel 1. To apply: $ cd sudo-1.9.6 $ patch -p1 < sudo-1.9.6p1.patch diff -urNa sudo-1.9.6/ChangeLog sudo-1.9.6p1/ChangeLog --- sudo-1.9.6/ChangeLog Sat Mar 13 08:48:50 2021 +++ sudo-1.9.6p1/ChangeLog Mon Mar 15 10:51:19 2021 @@ -1,8 +1,32 @@ +2021-03-15 Todd C. Miller + + * .hgtags: + Added tag SUDO_1_9_6p1 for changeset 055f2a618604 + [5376bc9e3b85] [tip] <1.9> + + * Merge sudo 1.9.6p1 from tip + [055f2a618604] [SUDO_1_9_6p1] <1.9> + + * NEWS, configure, configure.ac: + Sudo 1.9.6p1 + [93d95d3f23b1] + +2021-03-15 Alexandru Ardelean + + * plugins/sudoers/policy.c: + plugins: sudoers: policy: add MODE_IMPLIED_SHELL to RUN_VALID_FLAGS + + Since this flag isn't set, the sudo_mode variable gets invalidated + and running the 'sudo' command seems to error out with message + 'sudoers_policy_check: invalid mode flags from sudo front end: + 0x80001"' + [b98b418f1997] + 2021-03-13 Todd C. Miller * .hgtags: Added tag SUDO_1_9_6 for changeset e3e96490e48f - [2e377fa2b87c] [tip] <1.9> + [2e377fa2b87c] <1.9> * config.guess, config.sub: Merge sudo 1.9.6 from tip diff -urNa sudo-1.9.6/NEWS sudo-1.9.6p1/NEWS --- sudo-1.9.6/NEWS Sat Mar 13 08:47:23 2021 +++ sudo-1.9.6p1/NEWS Mon Mar 15 10:50:00 2021 @@ -1,3 +1,9 @@ +What's new in Sudo 1.9.6p1 + + * Fixed a regression introduced in sudo 1.9.6 that resulted in an + error message instead of a usage message when sudo is run with + no arguments. + What's new in Sudo 1.9.6 * Fixed a sudo_sendlog compilation problem with the AIX xlC compiler. diff -urNa sudo-1.9.6/configure sudo-1.9.6p1/configure --- sudo-1.9.6/configure Sat Mar 13 08:47:23 2021 +++ sudo-1.9.6p1/configure Mon Mar 15 10:50:00 2021 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for sudo 1.9.6. +# Generated by GNU Autoconf 2.71 for sudo 1.9.6p1. # # Report bugs to . # @@ -621,8 +621,8 @@ # Identity of this package. PACKAGE_NAME='sudo' PACKAGE_TARNAME='sudo' -PACKAGE_VERSION='1.9.6' -PACKAGE_STRING='sudo 1.9.6' +PACKAGE_VERSION='1.9.6p1' +PACKAGE_STRING='sudo 1.9.6p1' PACKAGE_BUGREPORT='https://bugzilla.sudo.ws/' PACKAGE_URL='' @@ -1615,7 +1615,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.9.6 to adapt to many kinds of systems. +\`configure' configures sudo 1.9.6p1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1681,7 +1681,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of sudo 1.9.6:";; + short | recursive ) echo "Configuration of sudo 1.9.6p1:";; esac cat <<\_ACEOF @@ -1964,7 +1964,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -sudo configure 1.9.6 +sudo configure 1.9.6p1 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -2621,7 +2621,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.9.6, which was +It was created by sudo $as_me 1.9.6p1, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -30207,7 +30207,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.9.6, which was +This file was extended by sudo $as_me 1.9.6p1, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -30275,7 +30275,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -sudo config.status 1.9.6 +sudo config.status 1.9.6p1 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" diff -urNa sudo-1.9.6/configure.ac sudo-1.9.6p1/configure.ac --- sudo-1.9.6/configure.ac Sat Mar 13 08:47:23 2021 +++ sudo-1.9.6p1/configure.ac Mon Mar 15 10:50:00 2021 @@ -18,7 +18,7 @@ dnl OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. dnl AC_PREREQ([2.59]) -AC_INIT([sudo], [1.9.6], [https://bugzilla.sudo.ws/], [sudo]) +AC_INIT([sudo], [1.9.6p1], [https://bugzilla.sudo.ws/], [sudo]) AC_CONFIG_HEADERS([config.h pathnames.h]) AC_CONFIG_SRCDIR([src/sudo.c]) dnl diff -urNa sudo-1.9.6/plugins/sudoers/policy.c sudo-1.9.6p1/plugins/sudoers/policy.c --- sudo-1.9.6/plugins/sudoers/policy.c Sat Mar 13 08:47:23 2021 +++ sudo-1.9.6p1/plugins/sudoers/policy.c Mon Mar 15 10:50:00 2021 @@ -81,7 +81,7 @@ } } -#define RUN_VALID_FLAGS (MODE_BACKGROUND|MODE_PRESERVE_ENV|MODE_RESET_HOME|MODE_LOGIN_SHELL|MODE_NONINTERACTIVE|MODE_IGNORE_TICKET|MODE_PRESERVE_GROUPS|MODE_SHELL|MODE_RUN) +#define RUN_VALID_FLAGS (MODE_BACKGROUND|MODE_PRESERVE_ENV|MODE_RESET_HOME|MODE_IMPLIED_SHELL|MODE_LOGIN_SHELL|MODE_NONINTERACTIVE|MODE_IGNORE_TICKET|MODE_PRESERVE_GROUPS|MODE_SHELL|MODE_RUN) #define EDIT_VALID_FLAGS (MODE_NONINTERACTIVE|MODE_IGNORE_TICKET|MODE_EDIT) #define LIST_VALID_FLAGS (MODE_NONINTERACTIVE|MODE_IGNORE_TICKET|MODE_LIST|MODE_CHECK) #define VALIDATE_VALID_FLAGS (MODE_NONINTERACTIVE|MODE_IGNORE_TICKET|MODE_VALIDATE)