summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2009-03-23 03:51:42 +0000
committerSteve Arnold <nerdboy@gentoo.org>2009-03-23 03:51:42 +0000
commita9d2a7f2c4b9856eb8f02aac7d1a0a2678baa195 (patch)
tree0cc6c3226fde429805f4b081e83648d089766999 /sci-geosciences/grass/files
parentamd64 stable, bug 245707 (diff)
downloadhistorical-a9d2a7f2c4b9856eb8f02aac7d1a0a2678baa195.tar.gz
historical-a9d2a7f2c4b9856eb8f02aac7d1a0a2678baa195.tar.bz2
historical-a9d2a7f2c4b9856eb8f02aac7d1a0a2678baa195.zip
Updated with fix for fortify_source error and buffer size.
Package-Manager: portage-2.2_rc25/cvs/Linux x86_64
Diffstat (limited to 'sci-geosciences/grass/files')
-rw-r--r--sci-geosciences/grass/files/grass-6.3.0-o_creat.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/sci-geosciences/grass/files/grass-6.3.0-o_creat.patch b/sci-geosciences/grass/files/grass-6.3.0-o_creat.patch
new file mode 100644
index 000000000000..32893044a4fc
--- /dev/null
+++ b/sci-geosciences/grass/files/grass-6.3.0-o_creat.patch
@@ -0,0 +1,36 @@
+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++)