You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
316 B
15 lines
316 B
2 months ago
|
--- a/scp.c
|
||
|
+++ a/scp.c
|
||
|
@@ -1084,6 +1084,10 @@ sink(int argc, char **argv)
|
||
|
free(vect[0]);
|
||
|
continue;
|
||
|
}
|
||
|
+ if (buf[0] == 'C' && ! exists && np[strlen(np)-1] == '/') {
|
||
|
+ errno = ENOTDIR;
|
||
|
+ goto bad;
|
||
|
+ }
|
||
|
omode = mode;
|
||
|
mode |= S_IWUSR;
|
||
|
if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) == -1) {
|
||
|
--
|