OBS User unknown 2007-11-26 20:01:26 +00:00 committed by Git OBS Bridge
parent 57afee39e9
commit 71ab2d17f8
3 changed files with 32 additions and 9 deletions

View File

@ -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

15
rtasdispd.open-mode.patch Normal file
View File

@ -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;
}

View File

@ -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 <roman@hodek.net>
%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