Bug 168

Summary: SUDO 1.6.8 does not log complete command when using a semicolon
Product: Sudo Reporter: Forrest Aldrich <forrie>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED INVALID    
Severity: normal    
Priority: normal    
Version: 1.6.8   
Hardware: Other   
OS: FreeBSD   

Description Forrest Aldrich 2005-02-22 14:23:12 MST
On FreeBSD-5.x, with the latest sudo, under BASH-3, if I run sudo and use a
command line of (ie):

sudo clear; command; command

the only item that's logged is "clear".
Comment 1 Todd C. Miller 2005-02-22 16:17:47 MST
You only ran a single command through sudo, the "clear" command.  In the shell a semicolon is a 
command delimiter.  That is, it ends the current command and starts a new one so what you have are 
three separate commands, only the first of which is run via sudo.  The others will run normally, without 
elevated permissions.