Bug 159

Summary: tmpdir in sudo_edit.c needs to be checked for trailing /
Product: Sudo Reporter: Kevin Zupan <kzupan>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: normal    
Version: 1.6.8   
Hardware: Alpha   
OS: Tru64 UNIX   

Description Kevin Zupan 2004-11-16 13:18:59 MST
On Tru64 5.1B, the _PATH_VARTMP define does not have a trailing / on it, and 
thus the tmp file created by sudoedit fails as it tries to create the file 
in /var/tmp<filename>.XXXXXXXXXX.  IMHO, when the tmpdir variable is created, 
it should be verified that the last character is a /, and if not that should be 
appended.

Thanx
Comment 1 Todd C. Miller 2004-11-16 13:46:56 MST
*** Bug 160 has been marked as a duplicate of this bug. ***
Comment 2 Todd C. Miller 2004-11-16 13:53:08 MST
How unfortunate that Digital chose to change this from Net/2.  The next sudo release will have a 
check for this.