public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kst] pr1: Get open() to be compliant.
@ 2026-10-06 19:29 Matthew D Truch
  0 siblings, 0 replies; only message in thread
From: Matthew D Truch @ 2026-10-06 19:29 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/kst
Branch : pr1
Commit : 7684d520f5f9c9000f917f01ae728c7794262990
Author : Matthew D Truch <mtruch@fedoraproject.org>
Date   : 2007-08-21T21:13:17+00:00
Stats  : +18/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/kst/c/7684d520f5f9c9000f917f01ae728c7794262990?branch=pr1

Log:
Get open() to be compliant.

---
diff --git a/fix-open.diff b/fix-open.diff
new file mode 100644
index 0000000..7b45da0
--- /dev/null
+++ b/fix-open.diff
@@ -0,0 +1,12 @@
+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;

diff --git a/kst.spec b/kst.spec
index d51b32c..e10d731 100644
--- a/kst.spec
+++ b/kst.spec
@@ -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 @@ fits files.  This includes healpix encoded fits files, and lfiio data.
 
 %prep
 %setup -q
+%patch -p1
 
 %build
 unset QTDIR || : ; . /etc/profile.d/qt.sh
@@ -227,6 +229,9 @@ rm -rf %{buildroot}
 %{_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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-06 19:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-06 19:29 [rpms/kst] pr1: Get open() to be compliant Matthew D Truch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox