Bugzilla – Attachment 2287 Details for
Bug 2113
S_IWRITE is considered obsolete and should be replaced with S_IWUSR.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Replaces instances of S_IWRITE with S_IWUSR.
openssh-replace_iwrite_with_iwusr.patch (text/plain), 694 bytes, created by
Nathan Osman
on 2013-06-02 05:57:31 AEST
(
hide
)
Description:
Replaces instances of S_IWRITE with S_IWUSR.
Filename:
MIME Type:
Creator:
Nathan Osman
Created:
2013-06-02 05:57:31 AEST
Size:
694 bytes
patch
obsolete
>=== modified file 'scp.c' >--- scp.c 2013-06-01 07:14:32 +0000 >+++ scp.c 2013-06-01 19:50:28 +0000 >@@ -1068,7 +1068,7 @@ > continue; > } > omode = mode; >- mode |= S_IWRITE; >+ mode |= S_IWUSR; > if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) { > bad: run_err("%s: %s", np, strerror(errno)); > continue; > >=== modified file 'sftp-client.c' >--- sftp-client.c 2013-06-01 07:14:32 +0000 >+++ sftp-client.c 2013-06-01 19:56:49 +0000 >@@ -1051,7 +1051,7 @@ > } > > local_fd = open(local_path, O_WRONLY | O_CREAT | O_TRUNC, >- mode | S_IWRITE); >+ mode | S_IWUSR); > if (local_fd == -1) { > error("Couldn't open local file \"%s\" for writing: %s", > local_path, strerror(errno)); >
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 2113
: 2287