From 7e03d23eac2dfd72d4d16b5f4115cc7d5473836e Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 8 Aug 2007 22:47:01 +0000 Subject: [PATCH] Pass mode to open with O_CREAT --- hdf5-1.6.5-open.patch | 11 +++++++++++ hdf5.spec | 5 ++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 hdf5-1.6.5-open.patch diff --git a/hdf5-1.6.5-open.patch b/hdf5-1.6.5-open.patch new file mode 100644 index 0000000..a9637dc --- /dev/null +++ b/hdf5-1.6.5-open.patch @@ -0,0 +1,11 @@ +--- hdf5-1.6.5/perform/zip_perf.c.open 2007-08-08 14:55:09.000000000 -0600 ++++ hdf5-1.6.5/perform/zip_perf.c 2007-08-08 14:55:25.000000000 -0600 +@@ -545,7 +545,7 @@ + unlink(filename); + + /* do compressed data write */ +- output = open(filename, O_RDWR | O_CREAT); ++ output = open(filename, O_RDWR | O_CREAT, S_IRWXU); + + if (output == -1) + error(strerror(errno)); diff --git a/hdf5.spec b/hdf5.spec index 71d3b3c..2f49919 100644 --- a/hdf5.spec +++ b/hdf5.spec @@ -1,6 +1,6 @@ Name: hdf5 Version: 1.6.5 -Release: 7%{?dist} +Release: 8%{?dist} Summary: A general purpose library and file format for storing scientific data License: BSD-ish Group: System Environment/Libraries @@ -16,6 +16,7 @@ Patch6: hdf5-1.6.5-flags.patch Patch7: hdf5-1.6.5-x86_64.patch Patch8: hdf5-1.6.5-sort.patch Patch9: hdf5-1.6.5-memset.patch +Patch10: hdf5-1.6.5-open.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: krb5-devel, openssl-devel, zlib-devel, gcc-gfortran, time @@ -48,6 +49,7 @@ HDF5 development headers and libraries. %patch7 -p1 -b .x86_64 %patch8 -p1 -b .sort %patch9 -p1 -b .memset +%patch10 -p1 -b .open %build %configure --with-ssl --enable-cxx --enable-fortran \ @@ -105,6 +107,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Wed Aug 8 2007 Orion Poplawski 1.6.5-8 - Fix memset typo +- Pass mode to open with O_CREAT * Mon Feb 12 2007 Orion Poplawski 1.6.5-7 - New project URL