summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2010-12-01 11:50:35 +1100
committerDamien Miller <djm@mindrot.org>2010-12-01 11:50:35 +1100
commit2cd629349d9fc4067985fec04b23bfb5ff7aa8d8 (patch)
tree7bd99191479f0805ba73623baa7ef47b4189e673 /clientloop.c
parent188ea814b10e39a399178af1fb18a79ea406f9bb (diff)
- djm@cvs.openbsd.org 2010/11/21 01:01:13
[clientloop.c misc.c misc.h ssh-agent.1 ssh-agent.c] honour $TMPDIR for client xauth and ssh-agent temporary directories; feedback and ok markus@
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clientloop.c b/clientloop.c
index 52dcb4c04..076386cc2 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clientloop.c,v 1.224 2010/11/13 23:27:50 djm Exp $ */ 1/* $OpenBSD: clientloop.c,v 1.225 2010/11/21 01:01:13 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -325,7 +325,7 @@ client_x11_get_proto(const char *display, const char *xauth_path,
325 if (trusted == 0) { 325 if (trusted == 0) {
326 xauthdir = xmalloc(MAXPATHLEN); 326 xauthdir = xmalloc(MAXPATHLEN);
327 xauthfile = xmalloc(MAXPATHLEN); 327 xauthfile = xmalloc(MAXPATHLEN);
328 strlcpy(xauthdir, "/tmp/ssh-XXXXXXXXXX", MAXPATHLEN); 328 mktemp_proto(xauthdir, MAXPATHLEN);
329 if (mkdtemp(xauthdir) != NULL) { 329 if (mkdtemp(xauthdir) != NULL) {
330 do_unlink = 1; 330 do_unlink = 1;
331 snprintf(xauthfile, MAXPATHLEN, "%s/xauthfile", 331 snprintf(xauthfile, MAXPATHLEN, "%s/xauthfile",