[session.c ssh-agent.c]
     10X for mkdtemp; djm@
This commit is contained in:
Darren Tucker 2003-10-15 16:10:25 +10:00
parent 64b77bcb4b
commit 072a7b178c
3 changed files with 8 additions and 5 deletions

View File

@ -36,6 +36,9 @@
- jakob@cvs.openbsd.org 2003/10/14 19:43:23
[README.dns]
update
- markus@cvs.openbsd.org 2003/10/14 19:54:39
[session.c ssh-agent.c]
10X for mkdtemp; djm@
20031009
- (dtucker) [sshd_config.5] UsePAM defaults to "no". ok djm@
@ -1353,4 +1356,4 @@
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
Report from murple@murple.net, diagnosis from dtucker@zip.com.au
$Id: ChangeLog,v 1.3078 2003/10/15 06:07:53 dtucker Exp $
$Id: ChangeLog,v 1.3079 2003/10/15 06:10:25 dtucker Exp $

View File

@ -33,7 +33,7 @@
*/
#include "includes.h"
RCSID("$OpenBSD: session.c,v 1.165 2003/09/23 20:17:11 markus Exp $");
RCSID("$OpenBSD: session.c,v 1.166 2003/10/14 19:54:39 markus Exp $");
#include "ssh.h"
#include "ssh1.h"
@ -144,7 +144,7 @@ auth_input_request_forwarding(struct passwd * pw)
/* Allocate a buffer for the socket name, and format the name. */
auth_sock_name = xmalloc(MAXPATHLEN);
auth_sock_dir = xmalloc(MAXPATHLEN);
strlcpy(auth_sock_dir, "/tmp/ssh-XXXXXXXX", MAXPATHLEN);
strlcpy(auth_sock_dir, "/tmp/ssh-XXXXXXXXXX", MAXPATHLEN);
/* Create private directory for socket */
if (mkdtemp(auth_sock_dir) == NULL) {

View File

@ -35,7 +35,7 @@
#include "includes.h"
#include "openbsd-compat/sys-queue.h"
RCSID("$OpenBSD: ssh-agent.c,v 1.114 2003/09/23 20:17:11 markus Exp $");
RCSID("$OpenBSD: ssh-agent.c,v 1.115 2003/10/14 19:54:39 markus Exp $");
#include <openssl/evp.h>
#include <openssl/md5.h>
@ -1100,7 +1100,7 @@ main(int ac, char **av)
if (agentsocket == NULL) {
/* Create private directory for agent socket */
strlcpy(socket_dir, "/tmp/ssh-XXXXXXXX", sizeof socket_dir);
strlcpy(socket_dir, "/tmp/ssh-XXXXXXXXXX", sizeof socket_dir);
if (mkdtemp(socket_dir) == NULL) {
perror("mkdtemp: private socket dir");
exit(1);