| Summary: | ssh-agent doesnt respect $TMPDIR | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Mike Frysinger <vapier> | ||||||
| Component: | ssh-agent | Assignee: | Assigned to nobody <unassigned-bugs> | ||||||
| Status: | CLOSED FIXED | ||||||||
| Severity: | normal | CC: | djm | ||||||
| Priority: | P2 | ||||||||
| Version: | 5.6p1 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 1803 | ||||||||
| Attachments: |
|
||||||||
Created attachment 1947 [details]
/home/djm/ssh-tmpdir.diff
use everywhere
this has been fixed in CVS and will be released in openssh 5.7. Thanks. Move resolved bugs to CLOSED after 5.7 release |
Created attachment 1913 [details] 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