[Bug 1809] New: ssh-agent doesnt respect $TMPDIR
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Thu Aug 26 11:59:25 EST 2010
https://bugzilla.mindrot.org/show_bug.cgi?id=1809
Summary: ssh-agent doesnt respect $TMPDIR
Product: Portable OpenSSH
Version: 5.6p1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: ssh-agent
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: vapier at gentoo.org
Created attachment 1913
--> https://bugzilla.mindrot.org/attachment.cgi?id=1913
openssh-ssh-agent-tmpdir.patch
the ssh-agent program hardcodes the /tmp/ path:
if (agentsocket == NULL) {
/* Create private directory for agent socket */
strlcpy(socket_dir, "/tmp/ssh-XXXXXXXXXX", sizeof socket_dir);
this doesnt respect a user's TMPDIR preference and can obviously break
if /tmp/ is screwed up (full/whatever), but TMPDIR is pointing to a
usable location.
here is an untested patch, but looks straight forward to me :p
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list