Accepting request 72431 from home:lnussel:branches:Base:System

- use /run for utmp as that's already mounted by the initrd

OBS-URL: https://build.opensuse.org/request/show/72431
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysvinit?expand=0&rev=125
This commit is contained in:
Cristian Rodríguez 2011-06-01 15:13:38 +00:00 committed by Git OBS Bridge
parent 36c8f2a091
commit b953e7b9dd
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,23 @@
use /run/utmp
Index: src/paths.h
===================================================================
--- src/paths.h.orig
+++ src/paths.h
@@ -48,3 +48,5 @@
#define REBOOTSCRIPT2 "/etc/rc.d/rc.6" /* Ditto. */
#endif
+#undef UTMP_FILE
+#define UTMP_FILE "/run/utmp"
Index: src/init.c
===================================================================
--- src/init.c.orig
+++ src/init.c
@@ -2634,6 +2634,7 @@ void init_main(void)
*/
if ((fd = open(UTMP_FILE, O_WRONLY|O_CREAT|O_TRUNC, 0644)) >= 0)
close(fd);
+ utmpname(UTMP_FILE);
/*
* Say hello to the world

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 1 12:57:08 UTC 2011 - lnussel@suse.de
- use /run for utmp as that's already mounted by the initrd
------------------------------------------------------------------
Thu May 19 12:53:51 CEST 2011 - werner@suse.de

View File

@ -50,6 +50,7 @@ Patch2: sysvinit-2.88dsf-suse.patch
Patch3: sysvinit-2.88dsf-no-kill.patch
Patch4: notify-pam-dead.patch
Patch5: sysvinit-2.88dsf-multiple-sulogin.patch
Patch6: sysvinit-2.88+dsf-run.diff
Patch20: powerd-2.0.2.dif
Patch21: powerd-2.0.2-getaddrinfo.patch
Patch30: killproc-2.19.dif
@ -91,6 +92,7 @@ sysvinit package.
%patch3 -p0 -b .no-kill
%patch4 -p0 -b .pam
%patch5 -p0 -b .sulogin
%patch6 -p0 -b .run
%patch
pushd ../powerd-%{PDVER}
%patch20