version 1.255, 2013/11/08 00:39:15 |
version 1.256, 2013/11/20 20:54:10 |
|
|
|
|
dlen = strlen(display); |
dlen = strlen(display); |
for (i = 0; i < dlen; i++) { |
for (i = 0; i < dlen; i++) { |
if (!isalnum(display[i]) && |
if (!isalnum((u_char)display[i]) && |
strchr(SSH_X11_VALID_DISPLAY_CHARS, display[i]) == NULL) { |
strchr(SSH_X11_VALID_DISPLAY_CHARS, display[i]) == NULL) { |
debug("Invalid character '%c' in DISPLAY", display[i]); |
debug("Invalid character '%c' in DISPLAY", display[i]); |
return 0; |
return 0; |
|
|
cmd = s = read_passphrase("\r\nssh> ", RP_ECHO); |
cmd = s = read_passphrase("\r\nssh> ", RP_ECHO); |
if (s == NULL) |
if (s == NULL) |
goto out; |
goto out; |
while (isspace(*s)) |
while (isspace((u_char)*s)) |
s++; |
s++; |
if (*s == '-') |
if (*s == '-') |
s++; /* Skip cmdline '-', if any */ |
s++; /* Skip cmdline '-', if any */ |
|
|
goto out; |
goto out; |
} |
} |
|
|
while (isspace(*++s)) |
while (isspace((u_char)*++s)) |
; |
; |
|
|
/* XXX update list of forwards in options */ |
/* XXX update list of forwards in options */ |