Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 160643 Details for
Bug 232079
app-editors/nano-2.1.1-r2 - open with O_CREAT in second argument needs 3 arguments in nano
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix O_CREAT in nano
nano-open_missing_mode.patch (text/plain), 811 bytes, created by
Magnus Granberg
on 2008-07-17 15:09:54 UTC
(
hide
)
Description:
Patch to fix O_CREAT in nano
Filename:
MIME Type:
Creator:
Magnus Granberg
Created:
2008-07-17 15:09:54 UTC
Size:
811 bytes
patch
obsolete
>diff -Nru /var/tmp/portage/app-editors/nano-2.1.1-r2/work/nano-2.1.1/src/files.c /root/hardened/nano-2.1.1/src/files.c >--- /var/tmp/portage/app-editors/nano-2.1.1-r2/work/nano-2.1.1/src/files.c 2008-03-31 08:25:18.000000000 +0200 >+++ /root/hardened/nano-2.1.1/src/files.c 2008-06-16 17:54:13.000000000 +0200 >@@ -1572,7 +1572,7 @@ > } > > if (f_open == NULL) { >- fd_source = open(realname, O_RDONLY | O_CREAT); >+ fd_source = open(realname, O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR); > > if (fd_source != -1) { > f_source = fdopen(fd_source, "rb"); >@@ -1691,7 +1691,7 @@ > int fd_source; > FILE *f_source = NULL; > >- fd_source = open(tempname, O_RDONLY | O_CREAT); >+ fd_source = open(tempname, O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR); > > if (fd_source != -1) { > f_source = fdopen(fd_source, "rb");
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 232079
: 160643