mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-02-18 06:46:55 +00:00
- deraadt@cvs.openbsd.org 2013/11/20 20:53:10
[scp.c] unsigned casts for ctype macros where neccessary ok guenther millert markus
This commit is contained in:
parent
23e00aa6ba
commit
e00167307e
@ -11,6 +11,10 @@
|
|||||||
delay closure of in/out fds until after "Bad protocol version
|
delay closure of in/out fds until after "Bad protocol version
|
||||||
identification..." message, as get_remote_ipaddr/get_remote_port
|
identification..." message, as get_remote_ipaddr/get_remote_port
|
||||||
require them open.
|
require them open.
|
||||||
|
- deraadt@cvs.openbsd.org 2013/11/20 20:53:10
|
||||||
|
[scp.c]
|
||||||
|
unsigned casts for ctype macros where neccessary
|
||||||
|
ok guenther millert markus
|
||||||
|
|
||||||
20131110
|
20131110
|
||||||
- (dtucker) [regress/keytype.sh] Populate ECDSA key types to be tested by
|
- (dtucker) [regress/keytype.sh] Populate ECDSA key types to be tested by
|
||||||
|
6
scp.c
6
scp.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: scp.c,v 1.178 2013/06/22 06:31:57 djm Exp $ */
|
/* $OpenBSD: scp.c,v 1.179 2013/11/20 20:53:10 deraadt Exp $ */
|
||||||
/*
|
/*
|
||||||
* scp - secure remote copy. This is basically patched BSD rcp which
|
* scp - secure remote copy. This is basically patched BSD rcp which
|
||||||
* uses ssh to do the data transfer (instead of using rcmd).
|
* uses ssh to do the data transfer (instead of using rcmd).
|
||||||
@ -1023,7 +1023,7 @@ sink(int argc, char **argv)
|
|||||||
if (*cp++ != ' ')
|
if (*cp++ != ' ')
|
||||||
SCREWUP("mode not delimited");
|
SCREWUP("mode not delimited");
|
||||||
|
|
||||||
for (size = 0; isdigit(*cp);)
|
for (size = 0; isdigit((unsigned char)*cp);)
|
||||||
size = size * 10 + (*cp++ - '0');
|
size = size * 10 + (*cp++ - '0');
|
||||||
if (*cp++ != ' ')
|
if (*cp++ != ' ')
|
||||||
SCREWUP("size not delimited");
|
SCREWUP("size not delimited");
|
||||||
@ -1287,7 +1287,7 @@ okname(char *cp0)
|
|||||||
c = (int)*cp;
|
c = (int)*cp;
|
||||||
if (c & 0200)
|
if (c & 0200)
|
||||||
goto bad;
|
goto bad;
|
||||||
if (!isalpha(c) && !isdigit(c)) {
|
if (!isalpha(c) && !isdigit((unsigned char)c)) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case '\'':
|
case '\'':
|
||||||
case '"':
|
case '"':
|
||||||
|
Loading…
Reference in New Issue
Block a user