Bugzilla – Attachment 2526 Details for
Bug 1768
scp: wrong error message when destination directory ends with a slash and is missing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch revised
0001-RHBZ-1142223-Fix-confusing-error-message.patch (text/plain), 726 bytes, created by
Jakub Jelen
on 2015-01-13 03:28:15 AEDT
(
hide
)
Description:
Patch revised
Filename:
MIME Type:
Creator:
Jakub Jelen
Created:
2015-01-13 03:28:15 AEDT
Size:
726 bytes
patch
obsolete
>From 9ba437fff291a1a82b79e3b4e77d8adca28a9970 Mon Sep 17 00:00:00 2001 >From: Jakub Jelen <jjelen@redhat.com> >Date: Tue, 6 Jan 2015 17:33:02 +0100 >Subject: [PATCH] RHBZ#1142223: Fix confusing error message > > * Applicable when copying file into non-existing target directory > (ending with slash) >--- > scp.c | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/scp.c b/scp.c >index 1ec3b70..2ce53d0 100644 >--- a/scp.c >+++ b/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) { >-- >2.1.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1768
:
1846
|
2523
|
2524
| 2526