From 24b6ed9bc1ef1538b8f3e254b30b1006f5e4d78f Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 2 Oct 2023 04:02:17 +0000 Subject: automatic import of openssh --- openssh-6.6.1p1-scp-non-existing-directory.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 openssh-6.6.1p1-scp-non-existing-directory.patch (limited to 'openssh-6.6.1p1-scp-non-existing-directory.patch') diff --git a/openssh-6.6.1p1-scp-non-existing-directory.patch b/openssh-6.6.1p1-scp-non-existing-directory.patch new file mode 100644 index 0000000..bb55c0b --- /dev/null +++ b/openssh-6.6.1p1-scp-non-existing-directory.patch @@ -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)) == -1) { +-- -- cgit v1.2.3