diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-06-25 06:28:30 +0200 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-06-25 06:28:30 +0200 |
commit | 7d5ed3a07b0f00e961d636514ac42d4f1bc57a3e (patch) | |
tree | 749ead90bc35061d08bfe48e2d1b4bf1306ed816 /scp.c | |
parent | - markus@cvs.openbsd.org 2001/06/22 23:35:21 (diff) | |
download | openssh-7d5ed3a07b0f00e961d636514ac42d4f1bc57a3e.tar.xz openssh-7d5ed3a07b0f00e961d636514ac42d4f1bc57a3e.zip |
- deraadt@cvs.openbsd.org 2001/06/23 00:16:16
[scp.c]
slightly better care
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -75,7 +75,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: scp.c,v 1.74 2001/06/16 08:57:35 markus Exp $"); +RCSID("$OpenBSD: scp.c,v 1.75 2001/06/23 00:16:16 deraadt Exp $"); #include "xmalloc.h" #include "atomicio.h" @@ -662,7 +662,7 @@ sink(argc, argv) #define atime tv[0] #define mtime tv[1] -#define SCREWUP(str) { why = str; goto screwup; } +#define SCREWUP(str) do { why = str; goto screwup; } while (0) setimes = targisdir = 0; mask = umask(0); @@ -1003,7 +1003,7 @@ okname(cp0) cp = cp0; do { - c = *cp; + c = (int)*cp; if (c & 0200) goto bad; if (!isalpha(c) && !isdigit(c) && |