This patch will upgrade Sudo version 1.7.4 patchlevel 5 to Sudo version 1.7.4 patchlevel 6. To apply: $ cd sudo-1.7.4p5 $ patch -p1 < sudo-1.7.4p6.patch diff -ura sudo-1.7.4p5/ChangeLog sudo-1.7.4p6/ChangeLog --- sudo-1.7.4p5/ChangeLog Wed Jan 12 09:42:36 2011 +++ sudo-1.7.4p6/ChangeLog Wed Jan 19 09:32:06 2011 @@ -1,3 +1,9 @@ +2011-01-18 Todd C. Miller + + * term.c: + Clear, don't set, OPOST in c_oflag as was intended in e26055d17b72. + [eacd774c37c0] + 2011-01-11 Todd C. Miller * check.c: diff -ura sudo-1.7.4p5/NEWS sudo-1.7.4p6/NEWS --- sudo-1.7.4p5/NEWS Wed Jan 12 13:36:18 2011 +++ sudo-1.7.4p6/NEWS Wed Jan 19 08:29:52 2011 @@ -1,3 +1,8 @@ +What's new in Sudo 1.7.4p6? + + * A bug has been fixed in the I/O logging support that could cause + visual artifacts in full-screen programs such as text editors. + What's new in Sudo 1.7.4p5? * A bug has been fixed that would allow a command to be run without the @@ -8,9 +13,6 @@ * A crash has been fixed when sudo's -g flag is used without the -u flag and the sudoers file contains an entry with no runas user or group listed. - - * A bug has been fixed in the I/O logging support that could cause - visual artifacts in full-screen programs such as text editors,. * A crash has been fixed when the Solaris project support is enabled and sudo's -g flag is used without the -u flag. diff -ura sudo-1.7.4p5/configure sudo-1.7.4p6/configure --- sudo-1.7.4p5/configure Wed Jan 12 09:46:24 2011 +++ sudo-1.7.4p6/configure Wed Jan 19 08:29:01 2011 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.65 for sudo 1.7.4p5. +# Generated by GNU Autoconf 2.65 for sudo 1.7.4p6. # # Report bugs to . # @@ -701,8 +701,8 @@ # Identity of this package. PACKAGE_NAME='sudo' PACKAGE_TARNAME='sudo' -PACKAGE_VERSION='1.7.4p5' -PACKAGE_STRING='sudo 1.7.4p5' +PACKAGE_VERSION='1.7.4p6' +PACKAGE_STRING='sudo 1.7.4p6' PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/' PACKAGE_URL='' @@ -1552,7 +1552,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.7.4p5 to adapt to many kinds of systems. +\`configure' configures sudo 1.7.4p6 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1617,7 +1617,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of sudo 1.7.4p5:";; + short | recursive ) echo "Configuration of sudo 1.7.4p6:";; esac cat <<\_ACEOF @@ -1828,7 +1828,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -sudo configure 1.7.4p5 +sudo configure 1.7.4p6 generated by GNU Autoconf 2.65 Copyright (C) 2009 Free Software Foundation, Inc. @@ -2527,7 +2527,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.7.4p5, which was +It was created by sudo $as_me 1.7.4p6, which was generated by GNU Autoconf 2.65. Invocation command line was $ $0 $@ @@ -18977,7 +18977,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.7.4p5, which was +This file was extended by sudo $as_me 1.7.4p6, which was generated by GNU Autoconf 2.65. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -19043,7 +19043,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.7.4p5 +sudo config.status 1.7.4p6 configured by $0, generated by GNU Autoconf 2.65, with options \\"\$ac_cs_config\\" diff -ura sudo-1.7.4p5/configure.in sudo-1.7.4p6/configure.in --- sudo-1.7.4p5/configure.in Wed Jan 12 09:46:21 2011 +++ sudo-1.7.4p6/configure.in Wed Jan 19 08:28:59 2011 @@ -3,7 +3,7 @@ dnl dnl Copyright (c) 1994-1996,1998-2010 Todd C. Miller dnl -AC_INIT([sudo], [1.7.4p5], [http://www.sudo.ws/bugs/], [sudo]) +AC_INIT([sudo], [1.7.4p6], [http://www.sudo.ws/bugs/], [sudo]) AC_CONFIG_HEADER(config.h pathnames.h) dnl dnl This won't work before AC_INIT diff -ura sudo-1.7.4p5/term.c sudo-1.7.4p6/term.c --- sudo-1.7.4p5/term.c Wed Jan 12 09:46:58 2011 +++ sudo-1.7.4p6/term.c Wed Jan 19 08:27:02 2011 @@ -152,7 +152,7 @@ term.c_cc[VMIN] = 1; term.c_cc[VTIME] = 0; CLR(term.c_iflag, ICRNL | IGNCR | INLCR | IUCLC | IXON); - SET(term.c_oflag, OPOST); + CLR(term.c_oflag, OPOST); CLR(term.c_lflag, ECHO | ICANON | ISIG | IEXTEN); if (isig) SET(term.c_lflag, ISIG);