From Todd.Miller at courtesan.com Sun Feb 21 10:37:10 2010 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sun, 21 Feb 2010 10:37:10 -0500 Subject: [sudo-cvs] sudo: 6 new changesets Message-ID: details: http://www.sudo.ws/repos/sudo/rev/1417fa4b4ab9 changeset: 5044:1417fa4b4ab9 user: Todd C. Miller date: Sat Feb 20 14:47:43 2010 -0500 description: Fix sudo install target details: http://www.sudo.ws/repos/sudo/rev/e012a0a30890 changeset: 5045:e012a0a30890 user: Todd C. Miller date: Sat Feb 20 15:13:11 2010 -0500 description: Fix uninitialized variable. details: http://www.sudo.ws/repos/sudo/rev/b37a8533ef1e changeset: 5046:b37a8533ef1e user: Todd C. Miller date: Sun Feb 21 10:24:27 2010 -0500 description: Make sudo_debug do a single vfprintf() which will result in a single write call on most systems. Avoids problems with interleaved debug printf from different processes. Also remove an extraneous error case since recv() can't return a short read and add some more XXX. details: http://www.sudo.ws/repos/sudo/rev/24c55dd4ff60 changeset: 5047:24c55dd4ff60 user: Todd C. Miller date: Sun Feb 21 10:26:30 2010 -0500 description: No longer need to check for explicit death of the child (process #2) since if it dies we will get EPIPE from the socketpair. Fix a sizeof() that was causing a spurious error. Convert SCRIPT_DEBUG to sudo_debug. details: http://www.sudo.ws/repos/sudo/rev/a29c14d78cd9 changeset: 5048:a29c14d78cd9 user: Todd C. Miller date: Sun Feb 21 10:30:43 2010 -0500 description: In child, handle parent side of the pipe going away. details: http://www.sudo.ws/repos/sudo/rev/3d65f182819a changeset: 5049:3d65f182819a user: Todd C. Miller date: Sun Feb 21 10:36:50 2010 -0500 description: Handle SIGSTOP in addition to SIGTSTP. Fixes a problem with suspending a shell with the "suspend" builtint. diffstat: src/Makefile.in | 8 ++++---- src/script.c | 57 +++++++++++++++++++++++---------------------------------- src/sudo.c | 16 ++++++++++------ 3 files changed, 37 insertions(+), 44 deletions(-) From Todd.Miller at courtesan.com Sun Feb 21 14:19:29 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 21 Feb 2010 14:19:29 -0500 Subject: [sudo-cvs] changeset in sudo: Log input and output to temp files for proof ... Message-ID: changeset: 5051:ae1dfc34f7d6 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/ae1dfc34f7d6 user: Todd C. Miller date: Sun Feb 21 14:19:22 2010 -0500 Log Message: Log input and output to temp files for proof of concept. diffstat: plugins/sample/sample_plugin.c | 31 +++++++++++++++++++++++++++---- 1 files changed, 27 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Sun Feb 21 16:12:11 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 21 Feb 2010 16:12:11 -0500 Subject: [sudo-cvs] changeset: sudo Message-ID: changeset: 5052:333655e3d5fe in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/333655e3d5fe user: Todd C. Miller date: Sun Feb 21 15:32:59 2010 -0500 Log Message: Fix typo diffstat: configure | 4 ++-- configure.in | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) From Todd.Miller at courtesan.com Sun Feb 21 16:12:12 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 21 Feb 2010 16:12:12 -0500 Subject: [sudo-cvs] changeset: sudo Message-ID: changeset: 5053:57e49bc20857 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/57e49bc20857 user: Todd C. Miller date: Sun Feb 21 16:12:01 2010 -0500 Log Message: Fix up compat dependencies. Fix distclean target in doc/Makefile.in diffstat: Makefile | 16 +++++++++--- configure | 25 +++++++++++-------- configure.in | 1 + doc/Makefile.in | 2 +- src/Makefile.in | 72 ++++++++++++++++++++++++++++++-------------------------- 5 files changed, 66 insertions(+), 50 deletions(-) From Todd.Miller at courtesan.com Sun Feb 21 16:41:25 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 21 Feb 2010 16:41:25 -0500 Subject: [sudo-cvs] sudo changeset 5054:a175b8185e0f Message-ID: changeset: 5054:a175b8185e0f in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/a175b8185e0f user: Todd C. Miller date: Sun Feb 21 16:41:19 2010 -0500 Log Message: compat files should not include sudo.h wire up compat in sample plugin diffstat: compat/closefrom.c | 2 +- compat/mkstemp.c | 4 ++-- plugins/sample/Makefile.in | 43 +++++++++++++++++++++++++++++++++++++++---- 3 files changed, 42 insertions(+), 7 deletions(-) From Todd.Miller at courtesan.com Sun Feb 21 21:24:31 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 21 Feb 2010 21:24:31 -0500 Subject: [sudo-cvs] sudo changeset 5055:4843dd000e08 Message-ID: changeset: 5055:4843dd000e08 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/4843dd000e08 user: Todd C. Miller date: Sun Feb 21 21:15:38 2010 -0500 Log Message: Add missing compat bits diffstat: plugins/sample/Makefile.in | 69 ++++++++++++++++++++++++--------------------- src/Makefile.in | 69 ++++++++++++++++++++++++--------------------- 2 files changed, 74 insertions(+), 64 deletions(-) From Todd.Miller at courtesan.com Sun Feb 21 21:24:32 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 21 Feb 2010 21:24:32 -0500 Subject: [sudo-cvs] sudo changeset 5056:232e52907634 Message-ID: changeset: 5056:232e52907634 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/232e52907634 user: Todd C. Miller date: Sun Feb 21 21:18:52 2010 -0500 Log Message: No more sudo_getpw* diffstat: compat/glob.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) From Todd.Miller at courtesan.com Sun Feb 21 21:24:33 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 21 Feb 2010 21:24:33 -0500 Subject: [sudo-cvs] sudo changeset 5057:bda7f74343d2 Message-ID: changeset: 5057:bda7f74343d2 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/bda7f74343d2 user: Todd C. Miller date: Sun Feb 21 21:19:07 2010 -0500 Log Message: Need to include limits.h diffstat: plugins/sample/sample_plugin.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Sun Feb 21 21:24:34 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 21 Feb 2010 21:24:34 -0500 Subject: [sudo-cvs] sudo changeset 5058:14cfb4775238 Message-ID: changeset: 5058:14cfb4775238 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/14cfb4775238 user: Todd C. Miller date: Sun Feb 21 21:24:20 2010 -0500 Log Message: Rename plugin.pod -> sudo_plugin.pod and wire into Makefile diffstat: doc/Makefile.in | 13 +- doc/plugin.pod | 757 -------------------------------------------- doc/sudo_plugin.cat | 792 ++++++++++++++++++++++++++++++++++++++++++++++ doc/sudo_plugin.man.in | 831 +++++++++++++++++++++++++++++++++++++++++++++++++ doc/sudo_plugin.pod | 757 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 2391 insertions(+), 759 deletions(-) From Todd.Miller at courtesan.com Sun Feb 21 21:28:05 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 21 Feb 2010 21:28:05 -0500 Subject: [sudo-cvs] sudo changeset 5059:92503de49b39 Message-ID: changeset: 5059:92503de49b39 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/92503de49b39 user: Todd C. Miller date: Sun Feb 21 21:27:57 2010 -0500 Log Message: include missing,h for vasprintf diffstat: plugins/sample/sample_plugin.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Mon Feb 22 19:52:43 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 22 Feb 2010 19:52:43 -0500 Subject: [sudo-cvs] sudo changeset 5062:f98f2a5496b9 Message-ID: changeset: 5062:f98f2a5496b9 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/f98f2a5496b9 user: Todd C. Miller date: Mon Feb 22 19:52:36 2010 -0500 Log Message: sync with reality diffstat: CHANGES | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Tue Feb 23 07:23:40 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 23 Feb 2010 07:23:40 -0500 Subject: [sudo-cvs] sudo changeset 5063:ac6c6af4d6a5 Message-ID: changeset: 5063:ac6c6af4d6a5 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/ac6c6af4d6a5 user: Todd C. Miller date: Tue Feb 23 07:23:34 2010 -0500 Log Message: Remove some carriage returns that snuck in diffstat: Makefile.in | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Sat Feb 27 09:30:09 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 27 Feb 2010 09:30:09 -0500 Subject: [sudo-commits] sudo changeset 5068:0d635c85461c Message-ID: changeset: 5068:0d635c85461c in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/0d635c85461c user: Todd C. Miller date: Sat Feb 27 09:23:25 2010 -0500 Log Message: Convert to ANSI C diffstat: compat/charclass.h | 2 +- compat/closefrom.c | 9 +-- compat/fnmatch.c | 24 +-------- compat/fnmatch.h | 2 +- compat/getcwd.c | 4 +- compat/getline.c | 10 +--- compat/getprogname.c | 2 +- compat/glob.c | 131 ++++++++++++++++---------------------------------- compat/glob.h | 9 --- compat/isblank.c | 3 +- compat/memrchr.c | 5 +- compat/mkstemp.c | 11 +-- compat/nanosleep.c | 4 +- compat/sigaction.c | 28 ++-------- compat/snprintf.c | 67 +++---------------------- compat/strcasecmp.c | 9 +-- compat/strerror.c | 3 +- compat/strlcat.c | 5 +- compat/strlcpy.c | 5 +- compat/strsignal.c | 3 +- compat/utime.h | 4 - compat/utimes.c | 8 +-- 22 files changed, 86 insertions(+), 262 deletions(-) From Todd.Miller at courtesan.com Sat Feb 27 09:30:10 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 27 Feb 2010 09:30:10 -0500 Subject: [sudo-commits] sudo changeset 5069:3f5016ff64f4 Message-ID: changeset: 5069:3f5016ff64f4 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/3f5016ff64f4 user: Todd C. Miller date: Sat Feb 27 09:26:43 2010 -0500 Log Message: Convert to ANSI C diffstat: include/alloc.h | 15 ++------------- include/compat.h | 27 +++++++++------------------ include/error.h | 11 ++--------- include/lbuf.h | 10 +++++----- include/list.h | 16 ++++------------ include/missing.h | 40 ++++++++++++++++++---------------------- 6 files changed, 40 insertions(+), 79 deletions(-) From Todd.Miller at courtesan.com Sat Feb 27 09:30:11 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 27 Feb 2010 09:30:11 -0500 Subject: [sudo-commits] sudo changeset 5070:5cbd315dbde8 Message-ID: changeset: 5070:5cbd315dbde8 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/5cbd315dbde8 user: Todd C. Miller date: Sat Feb 27 09:29:59 2010 -0500 Log Message: Convert to ANSI C diffstat: src/alloc.c | 11 ----------- src/audit.c | 22 +--------------------- src/error.c | 46 ++-------------------------------------------- src/lbuf.c | 29 ----------------------------- src/sudo_noexec.c | 30 +----------------------------- 5 files changed, 4 insertions(+), 134 deletions(-) From Todd.Miller at courtesan.com Sat Feb 27 10:05:16 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 27 Feb 2010 10:05:16 -0500 Subject: [sudo-commits] sudo changeset 5071:1e51f72e6964 Message-ID: changeset: 5071:1e51f72e6964 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/1e51f72e6964 user: Todd C. Miller date: Sat Feb 27 10:04:39 2010 -0500 Log Message: Sudo now requires an ANSI/ISO C compiler diffstat: configure | 29 +++++++++++++++-------------- configure.in | 9 ++++----- 2 files changed, 19 insertions(+), 19 deletions(-) From Todd.Miller at courtesan.com Sat Feb 27 10:05:16 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 27 Feb 2010 10:05:16 -0500 Subject: [sudo-commits] sudo changeset 5072:4b73cc45e2d4 Message-ID: changeset: 5072:4b73cc45e2d4 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/4b73cc45e2d4 user: Todd C. Miller date: Sat Feb 27 10:05:04 2010 -0500 Log Message: Bump version and update things slightly for sudo 1.8.0 diffstat: README | 41 +++++++++++++++++++++-------------------- WHATSNEW | 8 ++++++++ 2 files changed, 29 insertions(+), 20 deletions(-) From Todd.Miller at courtesan.com Sat Feb 27 18:49:22 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 27 Feb 2010 18:49:22 -0500 Subject: [sudo-commits] sudo changeset 5073:da4a39150838 Message-ID: changeset: 5073:da4a39150838 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/da4a39150838 user: Todd C. Miller date: Sat Feb 27 12:37:49 2010 -0500 Log Message: Add ChangeLog target diffstat: Makefile | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Sat Feb 27 18:49:23 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 27 Feb 2010 18:49:23 -0500 Subject: [sudo-commits] sudo changeset 5074:9e66c918b771 Message-ID: changeset: 5074:9e66c918b771 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/9e66c918b771 user: Todd C. Miller date: Sat Feb 27 12:39:18 2010 -0500 Log Message: Pass timeout to tgetpass() diffstat: src/conversation.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Sat Feb 27 18:49:23 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 27 Feb 2010 18:49:23 -0500 Subject: [sudo-commits] sudo changeset 5075:40908a617cb2 Message-ID: changeset: 5075:40908a617cb2 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/40908a617cb2 user: Todd C. Miller date: Sat Feb 27 13:17:58 2010 -0500 Log Message: Add tq_remove diffstat: include/list.h | 9 +++++---- src/list.c | 30 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Sat Feb 27 18:49:24 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 27 Feb 2010 18:49:24 -0500 Subject: [sudo-commits] sudo changeset 5076:1eea9a8de21c Message-ID: changeset: 5076:1eea9a8de21c in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/1eea9a8de21c user: Todd C. Miller date: Sat Feb 27 13:36:30 2010 -0500 Log Message: Ignore empty entries in command_info list diffstat: src/sudo.c | 85 ++++++++++++++++++++++++++++++++----------------------------- 1 files changed, 44 insertions(+), 41 deletions(-) From Todd.Miller at courtesan.com Sat Feb 27 18:49:25 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 27 Feb 2010 18:49:25 -0500 Subject: [sudo-commits] sudo changeset 5077:f09e022d547c Message-ID: changeset: 5077:f09e022d547c in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/f09e022d547c user: Todd C. Miller date: Sat Feb 27 16:53:56 2010 -0500 Log Message: Refactor script_execve() a bit so that it can be used in non-script mode. Needs more cleanup. diffstat: src/script.c | 206 ++++++++++++++++++++++++++++++++++------------------------ src/sudo.c | 82 +----------------------- 2 files changed, 123 insertions(+), 165 deletions(-) From Todd.Miller at courtesan.com Sun Feb 28 15:10:28 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 28 Feb 2010 15:10:28 -0500 Subject: [sudo-commits] sudo changeset 5078:47621c83bed9 Message-ID: changeset: 5078:47621c83bed9 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/47621c83bed9 user: Todd C. Miller date: Sun Feb 28 15:09:50 2010 -0500 Log Message: Add estrndup() diffstat: include/alloc.h | 1 + src/alloc.c | 32 ++++++++++++++++++++++++++++---- 2 files changed, 29 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Sun Feb 28 15:10:29 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 28 Feb 2010 15:10:29 -0500 Subject: [sudo-commits] sudo changeset 5079:7684a15a1352 Message-ID: changeset: 5079:7684a15a1352 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/7684a15a1352 user: Todd C. Miller date: Sun Feb 28 15:10:18 2010 -0500 Log Message: Add fallback to /bin/sh when execve() fails with ENOEXEC. diffstat: src/script.c | 28 +++++++++++++++++++++++++--- 1 files changed, 25 insertions(+), 3 deletions(-)