- millert@cvs.openbsd.org 2008/10/02 14:39:35
[session.c] Convert an unchecked strdup to xstrdup. OK deraadt@
This commit is contained in:
parent
456e6f0ebb
commit
d58f56000c
|
@ -31,6 +31,9 @@
|
||||||
[compat.c compat.h nchan.c ssh.c]
|
[compat.c compat.h nchan.c ssh.c]
|
||||||
only send eow and no-more-sessions requests to openssh 5 and newer;
|
only send eow and no-more-sessions requests to openssh 5 and newer;
|
||||||
fixes interop problems with broken ssh v2 implementations; ok djm@
|
fixes interop problems with broken ssh v2 implementations; ok djm@
|
||||||
|
- millert@cvs.openbsd.org 2008/10/02 14:39:35
|
||||||
|
[session.c]
|
||||||
|
Convert an unchecked strdup to xstrdup. OK deraadt@
|
||||||
|
|
||||||
20080906
|
20080906
|
||||||
- (dtucker) [config.guess config.sub] Update to latest versions from
|
- (dtucker) [config.guess config.sub] Update to latest versions from
|
||||||
|
@ -4765,4 +4768,4 @@
|
||||||
OpenServer 6 and add osr5bigcrypt support so when someone migrates
|
OpenServer 6 and add osr5bigcrypt support so when someone migrates
|
||||||
passwords between UnixWare and OpenServer they will still work. OK dtucker@
|
passwords between UnixWare and OpenServer they will still work. OK dtucker@
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.5106 2008/11/03 08:20:10 djm Exp $
|
$Id: ChangeLog,v 1.5107 2008/11/03 08:20:49 djm Exp $
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: session.c,v 1.242 2008/08/21 04:09:57 djm Exp $ */
|
/* $OpenBSD: session.c,v 1.243 2008/10/02 14:39:35 millert Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
* All rights reserved
|
* All rights reserved
|
||||||
|
@ -1795,7 +1795,7 @@ do_child(Session *s, const char *command)
|
||||||
char *p, *args;
|
char *p, *args;
|
||||||
|
|
||||||
setproctitle("%s@internal-sftp-server", s->pw->pw_name);
|
setproctitle("%s@internal-sftp-server", s->pw->pw_name);
|
||||||
args = strdup(command ? command : "sftp-server");
|
args = xstrdup(command ? command : "sftp-server");
|
||||||
for (i = 0, (p = strtok(args, " ")); p; (p = strtok(NULL, " ")))
|
for (i = 0, (p = strtok(args, " ")); p; (p = strtok(NULL, " ")))
|
||||||
if (i < ARGV_MAX - 1)
|
if (i < ARGV_MAX - 1)
|
||||||
argv[i++] = p;
|
argv[i++] = p;
|
||||||
|
|
Loading…
Reference in New Issue