From Todd.Miller at courtesan.com Tue Oct 6 09:19:20 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Tue, 6 Oct 2009 09:19:20 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910061319.n96DJKSU021432@core.courtesan.com> Module Name: sudo Committed By: millert Date: Tue Oct 6 13:19:20 UTC 2009 Modified Files: sudo: sudoreplay.c Log Message: Add missing protos To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 sudo/sudoreplay.c From Todd.Miller at courtesan.com Tue Oct 6 20:17:38 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Tue, 6 Oct 2009 20:17:38 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910070017.n970Hco1013918@core.courtesan.com> Module Name: sudo Committed By: millert Date: Wed Oct 7 00:17:38 UTC 2009 Modified Files: sudo: script.c Log Message: Already define O_NOCTTY in compat.h, don't need it here To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 sudo/script.c From Todd.Miller at courtesan.com Tue Oct 6 21:07:54 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Tue, 6 Oct 2009 21:07:54 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910070107.n9717sLB012611@core.courtesan.com> Module Name: sudo Committed By: millert Date: Wed Oct 7 01:07:54 UTC 2009 Modified Files: sudo: sudoreplay.c sudoreplay.cat sudoreplay.man.in sudoreplay.pod Log Message: Add support for pausing and changing the speed in interactive mode. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 sudo/sudoreplay.c cvs rdiff -u -r1.4 -r1.5 sudo/sudoreplay.cat cvs rdiff -u -r1.4 -r1.5 sudo/sudoreplay.man.in cvs rdiff -u -r1.5 -r1.6 sudo/sudoreplay.pod From Todd.Miller at courtesan.com Sun Oct 11 08:24:31 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sun, 11 Oct 2009 08:24:31 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910111224.n9BCOV5T008154@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sun Oct 11 12:24:31 UTC 2009 Modified Files: sudo: term.c Log Message: Handle getting/setting terminal attributes when the fd is in non-blocking mode. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 sudo/term.c From Todd.Miller at courtesan.com Sun Oct 11 08:27:11 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sun, 11 Oct 2009 08:27:11 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910111227.n9BCRBAP000730@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sun Oct 11 12:27:11 UTC 2009 Modified Files: sudo: script.c Log Message: Use an extra process to act as the glue bewteen the sessions associated with the user's controlling tty (what the shell uses) and the tty that sudo is using to do its logging. Basically, this means that if we get, e.g. SIGTSTP from the process sudo is running, we relay the signal to the parent so it's shell can do the job control. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 sudo/script.c From Todd.Miller at courtesan.com Sun Oct 11 08:42:03 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sun, 11 Oct 2009 08:42:03 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910111242.n9BCg3ZA016911@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sun Oct 11 12:42:03 UTC 2009 Modified Files: sudo: script.c Log Message: Apparently we need to send SIGSTOP to the command as well as ourself when we get SIGTSTP, the kernel doesn't automatically stop the process for us. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 sudo/script.c From Todd.Miller at courtesan.com Sun Oct 11 09:02:06 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sun, 11 Oct 2009 09:02:06 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910111302.n9BD26PU022343@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sun Oct 11 13:02:06 UTC 2009 Modified Files: sudo: term.c Log Message: Back out revision 1.10 as the signal that interrupts us may be SIGTTOU or SIGTTIN which the caller must handle. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 sudo/term.c From Todd.Miller at courtesan.com Sun Oct 11 09:25:23 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sun, 11 Oct 2009 09:25:23 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910111325.n9BDPNqf030724@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sun Oct 11 13:25:23 UTC 2009 Modified Files: sudo: script.c Log Message: Handle SIGTTOU and remove some debugging. To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 sudo/script.c From Todd.Miller at courtesan.com Sun Oct 11 10:13:36 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sun, 11 Oct 2009 10:13:36 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910111413.n9BEDa8O027372@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sun Oct 11 14:13:35 UTC 2009 Modified Files: sudo: script.c Log Message: Don't set stdout to blocking mode when flushing remaining output. It can cause us to hang when trying to exit. Need to investigate why. To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 sudo/script.c From Todd.Miller at courtesan.com Sun Oct 11 10:16:22 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sun, 11 Oct 2009 10:16:22 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910111416.n9BEGMET018641@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sun Oct 11 14:16:22 UTC 2009 Modified Files: sudo: script.c Log Message: Back out revision 1.34; the problem lies elsewhere. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 sudo/script.c From Todd.Miller at courtesan.com Sun Oct 11 17:41:36 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sun, 11 Oct 2009 17:41:36 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910112141.n9BLfapB028184@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sun Oct 11 21:41:36 UTC 2009 Modified Files: sudo: script.c Log Message: Run command in its own pgrp (like the shell does) for easier signalling. No need to relay SIGINT or SIGQUIT to parent, just send to grandchild. Don't want grandchild stopped events in the child (only termination). Flush output after suspending grandchild before signalling parent. To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 sudo/script.c From Todd.Miller at courtesan.com Sun Oct 11 18:02:02 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sun, 11 Oct 2009 18:02:02 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910112202.n9BM22ow005820@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sun Oct 11 22:02:02 UTC 2009 Modified Files: sudo: script.c Log Message: fix typo To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 sudo/script.c From Todd.Miller at courtesan.com Mon Oct 12 10:30:46 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Mon, 12 Oct 2009 10:30:46 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910121430.n9CEUkXl013935@core.courtesan.com> Module Name: sudo Committed By: millert Date: Mon Oct 12 14:30:46 UTC 2009 Modified Files: sudo: script.c Log Message: Move setpgid() of child into the parent side of the fork() where it belongs. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 sudo/script.c From Todd.Miller at courtesan.com Wed Oct 14 09:01:05 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Wed, 14 Oct 2009 09:01:05 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910141301.n9ED15sp011347@core.courtesan.com> Module Name: sudo Committed By: millert Date: Wed Oct 14 13:01:04 UTC 2009 Modified Files: sudo: script.c Log Message: Associate the grandchild's pgrp with the tty instead of the child's and just get suspend notifications via SIGCHLD instead of directly. This fixes a hang with programs that try to set terminal attributes and is more consistent with how the shell handles things. To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 sudo/script.c From Todd.Miller at courtesan.com Wed Oct 14 09:20:25 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Wed, 14 Oct 2009 09:20:25 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910141320.n9EDKP6j007250@core.courtesan.com> Module Name: sudo Committed By: millert Date: Wed Oct 14 13:20:25 UTC 2009 Modified Files: sudo: script.c Log Message: g/c unused code To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 sudo/script.c From Todd.Miller at courtesan.com Wed Oct 14 09:37:23 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Wed, 14 Oct 2009 09:37:23 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910141337.n9EDbND0001503@core.courtesan.com> Module Name: sudo Committed By: millert Date: Wed Oct 14 13:37:23 UTC 2009 Modified Files: sudo: script.c Log Message: Add missing WUNTRACED and store the signal that stopped the grandchild in suspended, not signo. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 sudo/script.c From Todd.Miller at courtesan.com Wed Oct 14 16:04:05 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Wed, 14 Oct 2009 16:04:05 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910142004.n9EK45ww014607@core.courtesan.com> Module Name: sudo Committed By: millert Date: Wed Oct 14 20:04:04 UTC 2009 Modified Files: sudo: Makefile.in config.h.in configure configure.in sudo.h Added Files: sudo: strsignal.c Log Message: Add check for strsignal() and a simple implementation if it is not there but sys_siglist is To generate a diff of this commit: cvs rdiff -u -r1.359 -r1.360 sudo/Makefile.in cvs rdiff -u -r1.255 -r1.256 sudo/config.h.in cvs rdiff -u -r1.301 -r1.302 sudo/configure cvs rdiff -u -r1.566 -r1.567 sudo/configure.in cvs rdiff -u -r0 -r1.1 sudo/strsignal.c cvs rdiff -u -r1.282 -r1.283 sudo/sudo.h From Todd.Miller at courtesan.com Wed Oct 14 16:04:16 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Wed, 14 Oct 2009 16:04:16 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910142004.n9EK4G2X016324@core.courtesan.com> Module Name: sudo Committed By: millert Date: Wed Oct 14 20:04:16 UTC 2009 Modified Files: sudo: script.c Log Message: In script mode, if the command is killed by a signal, print the signal description as well as a core dump notification like the shell does. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 sudo/script.c From Todd.Miller at courtesan.com Thu Oct 15 09:38:11 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Thu, 15 Oct 2009 09:38:11 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910151338.n9FDcBHN013413@core.courtesan.com> Module Name: sudo Committed By: millert Date: Thu Oct 15 13:38:11 UTC 2009 Modified Files: sudo: script.c Log Message: Only use TIOCNOTTY in the non-setsid case. If no TIOCSCTTY, just reopen slave. To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 sudo/script.c From Todd.Miller at courtesan.com Thu Oct 15 09:46:11 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Thu, 15 Oct 2009 09:46:11 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910151346.n9FDkBbt015764@core.courtesan.com> Module Name: sudo Committed By: millert Date: Thu Oct 15 13:46:11 UTC 2009 Modified Files: sudo: script.c Log Message: Call tcgetpgrp() in the parent, not the child and have the child spin until it is granted. Fixes a race on darwin. To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 sudo/script.c From Todd.Miller at courtesan.com Thu Oct 15 17:48:20 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Thu, 15 Oct 2009 17:48:20 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910152148.n9FLmKq1002043@core.courtesan.com> Module Name: sudo Committed By: millert Date: Thu Oct 15 21:48:20 UTC 2009 Modified Files: sudo: script.c Log Message: Sprinkle some more O_NOCTTY and call grantpt() before unlockpt() To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 sudo/script.c From Todd.Miller at courtesan.com Thu Oct 15 20:07:12 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Thu, 15 Oct 2009 20:07:12 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910160007.n9G07Cfs023649@core.courtesan.com> Module Name: sudo Committed By: millert Date: Fri Oct 16 00:07:12 UTC 2009 Modified Files: sudo: config.h.in configure configure.in script.c Log Message: Push ptem and ldterm for STERAMS-based systems when allocating a pty. To generate a diff of this commit: cvs rdiff -u -r1.256 -r1.257 sudo/config.h.in cvs rdiff -u -r1.302 -r1.303 sudo/configure cvs rdiff -u -r1.567 -r1.568 sudo/configure.in cvs rdiff -u -r1.45 -r1.46 sudo/script.c From Todd.Miller at courtesan.com Fri Oct 16 08:11:10 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Fri, 16 Oct 2009 08:11:10 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910161211.n9GCBAb7025490@core.courtesan.com> Module Name: sudo Committed By: millert Date: Fri Oct 16 12:11:10 UTC 2009 Modified Files: sudo: compat.h config.h.in configure configure.in Log Message: add killpg macro if no killpg function To generate a diff of this commit: cvs rdiff -u -r1.92 -r1.93 sudo/compat.h cvs rdiff -u -r1.257 -r1.258 sudo/config.h.in cvs rdiff -u -r1.303 -r1.304 sudo/configure cvs rdiff -u -r1.568 -r1.569 sudo/configure.in From Todd.Miller at courtesan.com Fri Oct 16 09:29:38 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Fri, 16 Oct 2009 09:29:38 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910161329.n9GDTcgN009234@core.courtesan.com> Module Name: sudo Committed By: millert Date: Fri Oct 16 13:29:38 UTC 2009 Modified Files: sudo: configure configure.in script.c Added Files: sudo: pty.c Log Message: Break out pty code into pty.c To generate a diff of this commit: cvs rdiff -u -r1.304 -r1.305 sudo/configure cvs rdiff -u -r1.569 -r1.570 sudo/configure.in cvs rdiff -u -r0 -r1.1 sudo/pty.c cvs rdiff -u -r1.46 -r1.47 sudo/script.c From Todd.Miller at courtesan.com Fri Oct 16 09:52:47 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Fri, 16 Oct 2009 09:52:47 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910161352.n9GDqlXw011631@core.courtesan.com> Module Name: sudo Committed By: millert Date: Fri Oct 16 13:52:47 UTC 2009 Modified Files: sudo: config.h.in configure configure.in Log Message: Disable transcript support if no tcsetpgrp until we support older BSD-style job control. To generate a diff of this commit: cvs rdiff -u -r1.258 -r1.259 sudo/config.h.in cvs rdiff -u -r1.305 -r1.306 sudo/configure cvs rdiff -u -r1.570 -r1.571 sudo/configure.in From Todd.Miller at courtesan.com Fri Oct 16 20:03:00 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Fri, 16 Oct 2009 20:03:00 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910170003.n9H030bx008756@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sat Oct 17 00:03:00 UTC 2009 Modified Files: sudo: Makefile.in sudo.h sudoreplay.c Log Message: Move prototypes for missing libc functions to missing.h To generate a diff of this commit: cvs rdiff -u -r1.360 -r1.361 sudo/Makefile.in cvs rdiff -u -r1.283 -r1.284 sudo/sudo.h cvs rdiff -u -r1.29 -r1.30 sudo/sudoreplay.c From Todd.Miller at courtesan.com Sat Oct 17 08:14:21 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sat, 17 Oct 2009 08:14:21 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910171214.n9HCEL6d020742@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sat Oct 17 12:14:21 UTC 2009 Added Files: sudo: missing.h Log Message: Move prototypes for missing libc functions to missing.h To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 sudo/missing.h From Todd.Miller at courtesan.com Sat Oct 17 08:17:16 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sat, 17 Oct 2009 08:17:16 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910171217.n9HCHGZJ010013@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sat Oct 17 12:17:16 UTC 2009 Modified Files: sudo: Makefile.in getline.c sudo.h sudoreplay.c Added Files: sudo: alloc.h Log Message: Move alloc.c protos into alloc.h To generate a diff of this commit: cvs rdiff -u -r1.361 -r1.362 sudo/Makefile.in cvs rdiff -u -r0 -r1.1 sudo/alloc.h cvs rdiff -u -r1.3 -r1.4 sudo/getline.c cvs rdiff -u -r1.284 -r1.285 sudo/sudo.h cvs rdiff -u -r1.30 -r1.31 sudo/sudoreplay.c From Todd.Miller at courtesan.com Sat Oct 17 08:54:08 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sat, 17 Oct 2009 08:54:08 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910171254.n9HCs8g5020298@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sat Oct 17 12:54:07 UTC 2009 Modified Files: sudo: config.h.in configure configure.in pty.c Log Message: Add support for IRIX-style dynamic ptys To generate a diff of this commit: cvs rdiff -u -r1.259 -r1.260 sudo/config.h.in cvs rdiff -u -r1.306 -r1.307 sudo/configure cvs rdiff -u -r1.571 -r1.572 sudo/configure.in cvs rdiff -u -r1.1 -r1.2 sudo/pty.c From Todd.Miller at courtesan.com Sun Oct 18 10:46:01 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sun, 18 Oct 2009 10:46:01 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910181446.n9IEk1Jd029627@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sun Oct 18 14:46:01 UTC 2009 Modified Files: sudo: script.c Log Message: Make transcript mode work as long as we can figure out our tty, even if it is not stdin. We'd like to use /dev/tty but that won't be valid after the setsid(). To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 sudo/script.c From Todd.Miller at courtesan.com Sun Oct 18 11:11:59 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sun, 18 Oct 2009 11:11:59 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910181511.n9IFBxvv011265@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sun Oct 18 15:11:59 UTC 2009 Modified Files: sudo: Makefile.in Log Message: Add back dependecy of gram.h on gram.y To generate a diff of this commit: cvs rdiff -u -r1.362 -r1.363 sudo/Makefile.in From Todd.Miller at courtesan.com Sun Oct 18 11:38:06 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sun, 18 Oct 2009 11:38:06 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910181538.n9IFc6kJ016695@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sun Oct 18 15:38:06 UTC 2009 Modified Files: sudo: sudo.c Log Message: if neither stdin nor stdout is a tty, check stderr To generate a diff of this commit: cvs rdiff -u -r1.527 -r1.528 sudo/sudo.c From Todd.Miller at courtesan.com Sun Oct 18 13:32:44 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sun, 18 Oct 2009 13:32:44 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910181732.n9IHWijZ002672@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sun Oct 18 17:32:44 UTC 2009 Modified Files: sudo: script.c Log Message: Make comment at the top of script_exec() match reality. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 sudo/script.c From Todd.Miller at courtesan.com Sun Oct 18 13:45:21 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sun, 18 Oct 2009 13:45:21 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910181745.n9IHjLTf011447@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sun Oct 18 17:45:21 UTC 2009 Modified Files: sudo: missing.h sudo.h Log Message: Move two struct forward declarations from sudo.h to missing.h To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 sudo/missing.h cvs rdiff -u -r1.285 -r1.286 sudo/sudo.h From Todd.Miller at courtesan.com Wed Oct 21 20:58:42 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Wed, 21 Oct 2009 20:58:42 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910220058.n9M0wgVx020919@core.courtesan.com> Module Name: sudo Committed By: millert Date: Thu Oct 22 00:58:41 UTC 2009 Modified Files: sudo: script.c Log Message: Do I/O in parent instead of child since the parent can have both /dev/tty as well as the pty fds open. The child just sets things up and waits for its grandchild and writes the signal description to the pty master if the command was killed by a signal. To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 sudo/script.c From Todd.Miller at courtesan.com Thu Oct 22 09:40:41 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Thu, 22 Oct 2009 09:40:41 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910221340.n9MDef4L001744@core.courtesan.com> Module Name: sudo Committed By: millert Date: Thu Oct 22 13:40:41 UTC 2009 Modified Files: sudo: script.c Log Message: Don't use log_error() in the child process. To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 sudo/script.c From Todd.Miller at courtesan.com Thu Oct 22 09:47:33 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Thu, 22 Oct 2009 09:47:33 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910221347.n9MDlXJm028525@core.courtesan.com> Module Name: sudo Committed By: millert Date: Thu Oct 22 13:47:32 UTC 2009 Modified Files: sudo: script.c Log Message: include selinux.h for is_selinux_enabled() proto To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 sudo/script.c From Todd.Miller at courtesan.com Thu Oct 22 09:47:43 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Thu, 22 Oct 2009 09:47:43 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910221347.n9MDlhlY000385@core.courtesan.com> Module Name: sudo Committed By: millert Date: Thu Oct 22 13:47:43 UTC 2009 Modified Files: sudo: selinux.c Log Message: remove unused variable To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 sudo/selinux.c From Todd.Miller at courtesan.com Thu Oct 22 09:53:00 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Thu, 22 Oct 2009 09:53:00 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910221353.n9MDr0P1000456@core.courtesan.com> Module Name: sudo Committed By: millert Date: Thu Oct 22 13:53:00 UTC 2009 Modified Files: sudo: script.c Log Message: when resuming command, send SIGCONT to its pgrp not just pid To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 sudo/script.c From Todd.Miller at courtesan.com Thu Oct 22 10:53:14 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Thu, 22 Oct 2009 10:53:14 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910221453.n9MErEI5008794@core.courtesan.com> Module Name: sudo Committed By: millert Date: Thu Oct 22 14:53:14 UTC 2009 Modified Files: sudo: script.c Log Message: Add missing variable declaration for when TIOCSCTTY is not defined. Need to include sys/termio.h for TIOCSCTTY on some systems. To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 sudo/script.c From Todd.Miller at courtesan.com Thu Oct 22 19:46:41 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Thu, 22 Oct 2009 19:46:41 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910222346.n9MNkfNi007112@core.courtesan.com> Module Name: sudo Committed By: millert Date: Thu Oct 22 23:46:41 UTC 2009 Modified Files: sudo: Makefile.in Log Message: remove vestiges of ZLDFLAGS To generate a diff of this commit: cvs rdiff -u -r1.363 -r1.364 sudo/Makefile.in From Todd.Miller at courtesan.com Thu Oct 22 19:50:17 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Thu, 22 Oct 2009 19:50:17 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910222350.n9MNoHl3007531@core.courtesan.com> Module Name: sudo Committed By: millert Date: Thu Oct 22 23:50:17 UTC 2009 Modified Files: sudo: INSTALL configure configure.in script.c sudoreplay.c Log Message: First pass at zlib support for transcript data files To generate a diff of this commit: cvs rdiff -u -r1.176 -r1.177 sudo/INSTALL cvs rdiff -u -r1.307 -r1.308 sudo/configure cvs rdiff -u -r1.572 -r1.573 sudo/configure.in cvs rdiff -u -r1.54 -r1.55 sudo/script.c cvs rdiff -u -r1.31 -r1.32 sudo/sudoreplay.c From Todd.Miller at courtesan.com Fri Oct 23 07:40:22 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Fri, 23 Oct 2009 07:40:22 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910231140.n9NBeMfi002076@core.courtesan.com> Module Name: sudo Committed By: millert Date: Fri Oct 23 11:40:22 UTC 2009 Modified Files: sudo: script.c Log Message: Remove non-wroking code that crept into rev 1.55 To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 sudo/script.c From Todd.Miller at courtesan.com Sat Oct 24 09:16:41 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sat, 24 Oct 2009 09:16:41 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910241316.n9ODGfZn008768@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sat Oct 24 13:16:41 UTC 2009 Modified Files: sudo: script.c Log Message: fix non-zlib case To generate a diff of this commit: cvs rdiff -u -r1.56 -r1.57 sudo/script.c From Todd.Miller at courtesan.com Sat Oct 24 14:32:44 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sat, 24 Oct 2009 14:32:44 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910241832.n9OIWiHv010112@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sat Oct 24 18:32:44 UTC 2009 Modified Files: sudo: script.c Log Message: Don't bother with sudo_waitpid() here for now. To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 sudo/script.c From Todd.Miller at courtesan.com Sat Oct 24 14:43:17 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sat, 24 Oct 2009 14:43:17 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910241843.n9OIhHCe023085@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sat Oct 24 18:43:17 UTC 2009 Modified Files: sudo: script.c Log Message: Fix handling of SIGTTOU/SIGTTIN in program being run. We now only give the command the controlling tty if the main sudo process is the foreground process. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 sudo/script.c From Todd.Miller at courtesan.com Sun Oct 25 10:55:14 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sun, 25 Oct 2009 10:55:14 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910251455.n9PEtEDw021303@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sun Oct 25 14:55:14 UTC 2009 Modified Files: sudo: script.c Log Message: Defer setting terminal into raw mode until just before we fork() and only do it if sudo is the foreground process. If we get SIGTT{IN,OU} and sudo is already in the foreground be sure to set raw mode before continuing the child. To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 sudo/script.c From Todd.Miller at courtesan.com Sat Oct 31 12:46:00 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sat, 31 Oct 2009 12:46:00 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910311646.n9VGk0gF010417@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sat Oct 31 16:45:59 UTC 2009 Modified Files: sudo: script.c Log Message: Update foreground/background status in SIGCONT handler in parent process. To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.61 sudo/script.c From Todd.Miller at courtesan.com Sat Oct 31 12:48:34 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sat, 31 Oct 2009 12:48:34 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910311648.n9VGmYbk015664@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sat Oct 31 16:48:34 UTC 2009 Modified Files: sudo: script.c Log Message: Close unused bits of script_fds in processes that don't need them. Restore default SIGCONT handler in child. To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 sudo/script.c From Todd.Miller at courtesan.com Sat Oct 31 13:14:52 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sat, 31 Oct 2009 13:14:52 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910311714.n9VHEqJB025067@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sat Oct 31 17:14:52 UTC 2009 Modified Files: sudo: script.c Log Message: Pass along SIGHUP and SIGTERM from parent to child. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 sudo/script.c From Todd.Miller at courtesan.com Sat Oct 31 13:40:19 2009 From: Todd.Miller at courtesan.com (Todd.Miller at courtesan.com) Date: Sat, 31 Oct 2009 13:40:19 -0400 (EDT) Subject: [sudo-cvs] CVS commit: sudo Message-ID: <200910311740.n9VHeJm8029477@core.courtesan.com> Module Name: sudo Committed By: millert Date: Sat Oct 31 17:40:19 UTC 2009 Modified Files: sudo: script.c Log Message: Instead of calling sigsuspend when waiting for SIGUSR[12] from parent, install the signal handlers w/o SA_RESTART and let them interrupt waitpid(). To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 sudo/script.c