public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Matthew D Truch <mtruch@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/kst] pr1: Get open() to be compliant.
Date: Tue, 06 Oct 2026 19:29:19 GMT	[thread overview]
Message-ID: <179131495903.1.4879556022391342669.rpms-kst-7684d520f5f9@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-10-06 19:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179131495903.1.4879556022391342669.rpms-kst-7684d520f5f9@fedoraproject.org \
    --to=mtruch@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox