Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 244623 Details for
Bug 333485
net-misc/openssh: ssh-agent does not respect TMPDIR
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
openssh-ssh-agent-tmpdir.patch
openssh-ssh-agent-tmpdir.patch (text/plain), 540 bytes, created by
SpanKY
on 2010-08-26 01:55:19 UTC
(
hide
)
Description:
openssh-ssh-agent-tmpdir.patch
Filename:
MIME Type:
Creator:
SpanKY
Created:
2010-08-26 01:55:19 UTC
Size:
540 bytes
patch
obsolete
>diff --git a/ssh-agent.c b/ssh-agent.c >index 2c0e286..28bf6ac 100644 >--- a/ssh-agent.c >+++ b/ssh-agent.c >@@ -1173,7 +1173,10 @@ main(int ac, char **av) > > if (agentsocket == NULL) { > /* Create private directory for agent socket */ >- strlcpy(socket_dir, "/tmp/ssh-XXXXXXXXXX", sizeof socket_dir); >+ char *tmpdir = getenv("TMPDIR"); >+ if (!tmpdir) >+ tmpdir = "/tmp"; >+ snprintf(socket_dir, sizeof socket_dir, "%s/ssh-XXXXXXXXXX", tmpdir); > if (mkdtemp(socket_dir) == NULL) { > perror("mkdtemp: private socket dir"); > exit(1);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 333485
:
243609
| 244623