[session.c ssh.c]
     don't limit xauth pathlen on client side and longer print length on
     server when debug; ok markus@
This commit is contained in:
Ben Lindstrom 2002-06-06 19:49:54 +00:00
parent 6a24641365
commit fac7769f64
3 changed files with 10 additions and 6 deletions

View File

@ -6,6 +6,10 @@
- markus@cvs.openbsd.org 2002/05/16 22:02:50 - markus@cvs.openbsd.org 2002/05/16 22:02:50
[cipher.c kex.h mac.c] [cipher.c kex.h mac.c]
fix warnings (openssl 0.9.7 requires const) fix warnings (openssl 0.9.7 requires const)
- stevesk@cvs.openbsd.org 2002/05/16 22:09:59
[session.c ssh.c]
don't limit xauth pathlen on client side and longer print length on
server when debug; ok markus@
20020604 20020604
- (stevesk) [channels.c] bug #164 patch from YOSHIFUJI Hideaki (changed - (stevesk) [channels.c] bug #164 patch from YOSHIFUJI Hideaki (changed
@ -690,4 +694,4 @@
- (stevesk) entropy.c: typo in debug message - (stevesk) entropy.c: typo in debug message
- (djm) ssh-keygen -i needs seeded RNG; report from markus@ - (djm) ssh-keygen -i needs seeded RNG; report from markus@
$Id: ChangeLog,v 1.2145 2002/06/06 19:48:16 mouring Exp $ $Id: ChangeLog,v 1.2146 2002/06/06 19:49:54 mouring Exp $

View File

@ -33,7 +33,7 @@
*/ */
#include "includes.h" #include "includes.h"
RCSID("$OpenBSD: session.c,v 1.134 2002/03/29 18:59:31 markus Exp $"); RCSID("$OpenBSD: session.c,v 1.135 2002/05/16 22:09:59 stevesk Exp $");
#include "ssh.h" #include "ssh.h"
#include "ssh1.h" #include "ssh1.h"
@ -1014,7 +1014,7 @@ do_rc_files(Session *s, const char *shell)
/* Add authority data to .Xauthority if appropriate. */ /* Add authority data to .Xauthority if appropriate. */
if (debug_flag) { if (debug_flag) {
fprintf(stderr, fprintf(stderr,
"Running %.100s add " "Running %.500s add "
"%.100s %.100s %.100s\n", "%.100s %.100s %.100s\n",
options.xauth_location, s->auth_display, options.xauth_location, s->auth_display,
s->auth_proto, s->auth_data); s->auth_proto, s->auth_data);

6
ssh.c
View File

@ -40,7 +40,7 @@
*/ */
#include "includes.h" #include "includes.h"
RCSID("$OpenBSD: ssh.c,v 1.170 2002/04/22 21:04:52 markus Exp $"); RCSID("$OpenBSD: ssh.c,v 1.171 2002/05/16 22:09:59 stevesk Exp $");
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/err.h> #include <openssl/err.h>
@ -811,10 +811,10 @@ x11_get_proto(char **_proto, char **_data)
* XXX: "localhost" match to determine FamilyLocal * XXX: "localhost" match to determine FamilyLocal
* is not perfect. * is not perfect.
*/ */
snprintf(line, sizeof line, "%.100s list unix:%s 2>" snprintf(line, sizeof line, "%s list unix:%s 2>"
_PATH_DEVNULL, options.xauth_location, display+10); _PATH_DEVNULL, options.xauth_location, display+10);
else else
snprintf(line, sizeof line, "%.100s list %.200s 2>" snprintf(line, sizeof line, "%s list %.200s 2>"
_PATH_DEVNULL, options.xauth_location, display); _PATH_DEVNULL, options.xauth_location, display);
debug2("x11_get_proto %s", line); debug2("x11_get_proto %s", line);
f = popen(line, "r"); f = popen(line, "r");