Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 183984 Details for
Bug 261283
sci-geosciences/grass-6.3.0 fails to build with _FORTIFY_SOURCE=2
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add S_IRUSR|S_IWUSR to tempfile creation
bug261283a.patch (text/plain), 1.43 KB, created by
Martin von Gagern
on 2009-03-05 10:04:05 UTC
(
hide
)
Description:
Add S_IRUSR|S_IWUSR to tempfile creation
Filename:
MIME Type:
Creator:
Martin von Gagern
Created:
2009-03-05 10:04:05 UTC
Size:
1.43 KB
patch
obsolete
>open with O_CREAT in second argument needs 3 arguments. >2009-03-05 Martin von Gagern >Reference: https://bugs.gentoo.org/261283 > >Index: grass-6.3.0/raster/r.drain/main.c >=================================================================== >--- grass-6.3.0.orig/raster/r.drain/main.c >+++ grass-6.3.0/raster/r.drain/main.c >@@ -296,8 +296,8 @@ int main(int argc, char **argv) > tempfile1 = G_tempfile(); > tempfile2 = G_tempfile(); > >- fe = open(tempfile1, O_RDWR | O_CREAT); >- fd = open(tempfile2, O_RDWR | O_CREAT); >+ fe = open(tempfile1, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); >+ fd = open(tempfile2, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); > > /* transfer the input map to a temp file */ > for (i = 0; i < nrows; i++) { >Index: grass-6.3.0/raster/r.fill.dir/main.c >=================================================================== >--- grass-6.3.0.orig/raster/r.fill.dir/main.c >+++ grass-6.3.0/raster/r.fill.dir/main.c >@@ -196,9 +196,9 @@ main(int argc, char **argv) > tempfile2 = G_tempfile(); > tempfile3 = G_tempfile(); > >- fe=open(tempfile1,O_RDWR|O_CREAT); /* elev */ >- fd=open(tempfile2,O_RDWR|O_CREAT); /* dirn */ >- fm=open(tempfile3,O_RDWR|O_CREAT); /* problems */ >+ fe=open(tempfile1,O_RDWR|O_CREAT, S_IRUSR|S_IWUSR); /* elev */ >+ fd=open(tempfile2,O_RDWR|O_CREAT, S_IRUSR|S_IWUSR); /* dirn */ >+ fm=open(tempfile3,O_RDWR|O_CREAT, S_IRUSR|S_IWUSR); /* problems */ > > G_message(_("Reading map...")); > for(i=0;i<nrows;i++)
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 261283
: 183984