Bug 160 - tmpdir in sudo_edit.c needs to be checked for trailing /
tmpdir in sudo_edit.c needs to be checked for trailing /
Status: RESOLVED DUPLICATE of bug 159
Product: Sudo
Classification: Unclassified
Component: Sudo
1.6.8
Alpha Tru64 UNIX
: normal normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-11-16 13:19 MST by Kevin Zupan
Modified: 2004-11-16 17:46 MST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Zupan 2004-11-16 13:19:06 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:44 MST

*** This bug has been marked as a duplicate of 159 ***