Return to scp.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.213, 2020/10/18 11:32:01 | version 1.214, 2021/04/03 06:18:40 | ||
---|---|---|---|
|
|
||
static int | static int | ||
parse_scp_uri(const char *uri, char **userp, char **hostp, int *portp, | parse_scp_uri(const char *uri, char **userp, char **hostp, int *portp, | ||
char **pathp) | char **pathp) | ||
{ | { | ||
int r; | int r; | ||
|
|
||
if (pflag) | if (pflag) | ||
(void) chmod(np, mode); | (void) chmod(np, mode); | ||
} else { | } else { | ||
/* Handle copying from a read-only | /* Handle copying from a read-only directory */ | ||
directory */ | |||
mod_flag = 1; | mod_flag = 1; | ||
if (mkdir(np, mode | S_IRWXU) == -1) | if (mkdir(np, mode | S_IRWXU) == -1) | ||
goto bad; | goto bad; |