Fix confusing error message in scp (#1142223)
This commit is contained in:
parent
11084609c9
commit
87ef7b8238
|
@ -0,0 +1,14 @@
|
||||||
|
--- 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)) < 0) {
|
||||||
|
--
|
|
@ -217,6 +217,8 @@ Patch915: openssh-6.4p1-ignore-SIGXFSZ-in-postauth.patch
|
||||||
Patch916: openssh-6.4p1-cisco-dh-keys.patch
|
Patch916: openssh-6.4p1-cisco-dh-keys.patch
|
||||||
# sftp: remote directory always prepended to relative symbolic links (#825538)
|
# sftp: remote directory always prepended to relative symbolic links (#825538)
|
||||||
Patch917: openssh-6.4p1-sftp-symlink-prepend-relative-links.patch
|
Patch917: openssh-6.4p1-sftp-symlink-prepend-relative-links.patch
|
||||||
|
# scp file into non-existing directory (#1142223)
|
||||||
|
Patch918: openssh-6.4p1-scp-non-existing-directory.patch
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
|
@ -452,6 +454,7 @@ popd
|
||||||
%patch915 -p1 -b .SIGXFSZ
|
%patch915 -p1 -b .SIGXFSZ
|
||||||
%patch916 -p1 -b .cisco-dh
|
%patch916 -p1 -b .cisco-dh
|
||||||
%patch917 -p1 -b .sftp
|
%patch917 -p1 -b .sftp
|
||||||
|
%patch918 -p1 -b .scp
|
||||||
|
|
||||||
|
|
||||||
%if 0
|
%if 0
|
||||||
|
|
Loading…
Reference in New Issue