rpms/kst/devel fix-open.diff,NONE,1.1 kst.spec,1.18,1.19

Matthew D Truch (mtruch) fedora-extras-commits at redhat.com
Tue Aug 21 21:13:50 UTC 2007


Author: mtruch

Update of /cvs/extras/rpms/kst/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28389

Modified Files:
	kst.spec 
Added Files:
	fix-open.diff 
Log Message:
Get open() to be compliant.  


fix-open.diff:

--- NEW FILE fix-open.diff ---
diff -ur kst-1.4.0/kst/src/datasources/dirfile/getdata.c kst-1.4.0-fix-open/kst/src/datasources/dirfile/getdata.c
--- kst-1.4.0/kst/src/datasources/dirfile/getdata.c	2007-03-15 17:20:53.000000000 -0400
+++ kst-1.4.0-fix-open/kst/src/datasources/dirfile/getdata.c	2007-08-21 16:44:52.000000000 -0400
@@ -2204,7 +2204,7 @@
         return(1);
       }
     }else{
-      R->fp = open(datafilename, O_RDWR | O_CREAT);
+      R->fp = open(datafilename, O_RDWR | O_CREAT, 0644);
       if (R->fp < 0) {
         *n_write = 0;
         *error_code = PD_E_OPEN_RAWFIELD;


Index: kst.spec
===================================================================
RCS file: /cvs/extras/rpms/kst/devel/kst.spec,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- kst.spec	2 Aug 2007 19:19:20 -0000	1.18
+++ kst.spec	21 Aug 2007 21:13:17 -0000	1.19
@@ -1,12 +1,13 @@
 Name:       kst
 Version:    1.4.0
-Release:    7%{?dist}
+Release:    8%{?dist}
 Summary:    A data viewing program for KDE
 
 Group:      Applications/Engineering
 License:    GPLv2+
 URL:        http://kst.kde.org/
 Source0:    ftp://ftp.kde.org/pub/kde/stable/apps/KDE3.x/scientific/kst-%{version}.tar.gz
+Patch:      fix-open.diff
 BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Requires(post):   /sbin/ldconfig
@@ -76,6 +77,7 @@
 
 %prep
 %setup -q
+%patch -p1
 
 %build
 unset QTDIR || : ; . /etc/profile.d/qt.sh
@@ -227,6 +229,9 @@
 %{_datadir}/services/kst/kstdata_netcdf.desktop
 
 %changelog
+* Tue Aug 21 2007 Matthew Truch <matt at truch.net> - 1.4.0-8
+- Add patch to fix open() call that was not compliant.  
+
 * Thu Aug 2 2007 Matthew Truch <matt at truch.net> - 1.4.0-7
 - Update License tag
 




More information about the fedora-extras-commits mailing list