Bugzilla – Attachment 3134 Details for
Bug 2839
SCP 'scp -r' Does Not Honor umask When Creating Directories
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
apply umask to file creation mode
openssh-scp-dir-umask.patch (text/plain), 294 bytes, created by
Darren Tucker
on 2018-03-13 13:15:12 AEDT
(
hide
)
Description:
apply umask to file creation mode
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2018-03-13 13:15:12 AEDT
Size:
294 bytes
patch
obsolete
>diff --git a/scp.c b/scp.c >index 31e6709f..9eb1bf0c 100644 >--- a/scp.c >+++ b/scp.c >@@ -1092,6 +1092,8 @@ sink(int argc, char **argv) > SCREWUP("bad mode"); > mode = (mode << 3) | (*cp - '0'); > } >+ if (!pflag) >+ mode &= ~mask; > if (*cp++ != ' ') > SCREWUP("mode not delimited"); >
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
Flags:
djm
:
ok+
Actions:
View
|
Diff
Attachments on
bug 2839
: 3134