Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 160644 Details for
Bug 232081
sys-devel/gettext-0.17-r1 - open with O_CREAT in second argument needs 3 arguments in gettext
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix O_CREAT bug in gettext
gettext-open-file-fortify.patch (text/plain), 617 bytes, created by
Magnus Granberg
on 2008-07-17 15:34:53 UTC
(
hide
)
Description:
Fix O_CREAT bug in gettext
Filename:
MIME Type:
Creator:
Magnus Granberg
Created:
2008-07-17 15:34:53 UTC
Size:
617 bytes
patch
obsolete
>diff -Nru /var/tmp/portage/sys-devel/gettext-0.17-r1/work/gettext-0.17/gettext-tools/src/write-catalog.c /root/hardened/gettext-0.17/gettext-tools/src/write-catalog.c >--- /gettext-0.17/gettext-tools/src/write-catalog.c 2007-10-07 21:37:39.000000000 +0200 >+++ /gettext-0.17/gettext-tools/src/write-catalog.c 2008-06-16 00:28:11.000000000 +0200 >@@ -220,7 +220,7 @@ > /* Open the output file. */ > if (!to_stdout) > { >- fd = open (filename, O_WRONLY | O_CREAT); >+ fd = open (filename, O_WRONLY | O_CREAT, S_IRUSR|S_IWUSR); > if (fd < 0) > { > const char *errno_description = 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 232081
: 160644