Bug 159 - tmpdir in sudo_edit.c needs to be checked for trailing /
tmpdir in sudo_edit.c needs to be checked for trailing /
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Sudo
1.6.8
Alpha Tru64 UNIX
: normal normal
Assigned To: Todd C. Miller
: 160 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-11-16 13:18 MST by Kevin Zupan
Modified: 2004-11-16 17:53 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: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.