diff --git a/rtasdispd.changes b/rtasdispd.changes index f5f2d84..7ba879a 100644 --- a/rtasdispd.changes +++ b/rtasdispd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Nov 26 10:51:34 CET 2007 - olh@suse.de + +- add mode argument to open() call + ------------------------------------------------------------------- Tue Nov 7 09:43:13 CET 2006 - olh@suse.de diff --git a/rtasdispd.open-mode.patch b/rtasdispd.open-mode.patch new file mode 100644 index 0000000..fc0f566 --- /dev/null +++ b/rtasdispd.open-mode.patch @@ -0,0 +1,15 @@ +--- + rtasdispd.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/rtasdispd.c ++++ b/rtasdispd.c +@@ -495,7 +495,7 @@ int write_pid_file(unsigned newpid) + FILE *f; + int fd; + +- if ((fd = open(PIDFILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL)) < 0) { ++ if ((fd = open(PIDFILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644)) < 0) { + perror(PIDFILE); + return -1; + } diff --git a/rtasdispd.spec b/rtasdispd.spec index 9152430..b329ba7 100644 --- a/rtasdispd.spec +++ b/rtasdispd.spec @@ -1,7 +1,7 @@ # # spec file for package rtasdispd (Version 0.1) # -# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -11,16 +11,17 @@ Name: rtasdispd Version: 0.1 -Release: 287 +Release: 337 Summary: Shows System Status Messages on pSeries Panel Displays -License: GNU General Public License (GPL) - all versions +License: GPL v2 or later Group: System/Monitoring -Autoreqprov: on +AutoReqProv: on +PreReq: %insserv_prereq %fillup_prereq +BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: rtasdispd-%{version}.tar.gz Source1: sysconfig.rtasdispd Source2: rc.rtasdispd -PreReq: %insserv_prereq %fillup_prereq -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Patch1: rtasdispd.open-mode.patch %description This daemon can show system status information, such as load, uptime, @@ -34,13 +35,13 @@ Authors: Roman Hodek %prep -%setup +%setup -q +%patch1 -p1 %build make CFLAGS="$RPM_OPT_FLAGS -Wall" %install -[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; mv rtasdispd.1 rtasdispd.8 make DESTDIR=$RPM_BUILD_ROOT install MANS=rtasdispd.8 mkdir -p $RPM_BUILD_ROOT/etc/init.d @@ -63,7 +64,9 @@ install -m 644 %{S:1} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.rtasdis %{_mandir}/man8/* /var/adm/fillup-templates/sysconfig.rtasdispd -%changelog -n rtasdispd +%changelog +* Mon Nov 26 2007 - olh@suse.de +- add mode argument to open() call * Tue Nov 07 2006 - olh@suse.de - add Should-Start: $remote_fs to runlevel script * Tue Nov 07 2006 - olh@suse.de