Hello community,
here is the log from the commit of package sysvinit for openSUSE:Factory
checked in at Thu Oct 14 00:45:54 CEST 2010.
--------
--- sysvinit/sysvinit.changes 2010-10-04 16:49:02.000000000 +0200
+++ /mounts/work_src_done/STABLE/sysvinit/sysvinit.changes 2010-10-12 18:22:55.000000000 +0200
@@ -1,0 +2,5 @@
+Tue Oct 12 18:21:44 CEST 2010 - werner@suse.de
+
+- libblogger: set O_CLOEXEC for named FIFO /dev/blog (bnc#645793)
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ sysvinit.spec ++++++
--- /var/tmp/diff_new_pack.z2p9hi/_old 2010-10-14 00:45:37.000000000 +0200
+++ /var/tmp/diff_new_pack.z2p9hi/_new 2010-10-14 00:45:37.000000000 +0200
@@ -29,7 +29,7 @@
Group: System/Base
AutoReqProv: on
Version: 2.88
-Release: 18
+Release: 19
Summary: SysV-Style init
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: audit-devel libselinux-devel libsepol-devel pam-devel
++++++ showconsole-1.12.dif ++++++
--- /var/tmp/diff_new_pack.z2p9hi/_old 2010-10-14 00:45:38.000000000 +0200
+++ /var/tmp/diff_new_pack.z2p9hi/_new 2010-10-14 00:45:38.000000000 +0200
@@ -56,3 +56,54 @@
close(c->fd);
c->fd = -1;
}
+--- libblogger.c
++++ libblogger.c 2010-10-12 16:12:20.743926028 +0000
+@@ -54,7 +54,7 @@ static int bootlog_init(const int lvl __
+ if (!S_ISFIFO(st.st_mode))
+ goto out;
+
+- if ((fdfifo = open(fifo_name, O_WRONLY|O_NONBLOCK)) < 0)
++ if ((fdfifo = open(fifo_name, O_WRONLY|O_NONBLOCK|O_NOCTTY|O_CLOEXEC)) < 0)
+ goto out;
+
+ ret = 0;
+--- libconsole.c
++++ libconsole.c 2010-10-12 16:20:05.187926537 +0000
+@@ -770,7 +770,7 @@ void prepareIO(void (*rfunc)(int), void
+ (void)mkfifo(fifo_name, 0600);
+ errno = 0;
+ if (!stat(fifo_name, &st) && S_ISFIFO(st.st_mode)) {
+- if ((fdfifo = open(fifo_name, O_RDWR|O_NOCTTY)) < 0)
++ if ((fdfifo = open(fifo_name, O_RDONLY|O_NOCTTY|O_CLOEXEC)) < 0)
+ warn("can not open named fifo %s: %s\n", fifo_name, strerror(errno));
+ }
+ }
+@@ -788,7 +788,7 @@ static void more_input (struct timeval *
+ FD_ZERO (&watch);
+ FD_SET (fdread, &watch);
+
+- if (fdfifo > 0) {
++ if (fdfifo >= 0) {
+ FD_SET (fdfifo, &watch);
+ wfds = (fdread > fdfifo ? fdread : fdfifo) + 1;
+ } else
+@@ -836,7 +836,7 @@ static void more_input (struct timeval *
+ }
+ }
+
+- if (fdfifo > 0 && FD_ISSET(fdfifo, &watch)) {
++ if (fdfifo >= 0 && FD_ISSET(fdfifo, &watch)) {
+ const ssize_t cnt = safein(fdfifo, (char*)trans, sizeof(trans), noerr);
+
+ if (cnt > 0) {
+@@ -1003,6 +1003,10 @@ void closeIO(void)
+ (void)fclose(flog);
+ flog = NULL;
+ xout:
++ if (fdfifo >= 0) {
++ close(fdfifo);
++ fdfifo = -1;
++ }
+ for (c = cons; c; c = c->next) {
+ if (c->fd < 0)
+ continue;
++++++ startpar-0.57.dif ++++++
--- /var/tmp/diff_new_pack.z2p9hi/_old 2010-10-14 00:45:38.000000000 +0200
+++ /var/tmp/diff_new_pack.z2p9hi/_new 2010-10-14 00:45:38.000000000 +0200
@@ -1,5 +1,15 @@
+--- makeboot.c
++++ makeboot.c 2010-10-12 16:42:53.996426160 +0000
+@@ -407,6 +407,7 @@ void check_run_files(const char *action,
+ */
+ #ifndef USE_BLOGD
+ # define bootlog(arg...)
++# define closeblog()
+ #endif
+
+ /*
--- proc.c
-+++ proc.c 2010-09-30 14:19:15.595926333 +0200
++++ proc.c 2010-09-30 12:19:16.000000000 +0000
@@ -94,3 +94,74 @@ int read_proc(unsigned long int * const
return 0;
}
@@ -76,7 +86,7 @@
+ }
+}
--- proc.h
-+++ proc.h 2010-09-30 14:41:35.271926120 +0200
++++ proc.h 2010-09-30 12:41:35.000000000 +0000
@@ -19,5 +19,3 @@
extern int read_proc(unsigned long int *prcs_run, unsigned long int *prcs_blked);
@@ -84,8 +94,29 @@
-extern void unraw_consoles(void);
-extern void raw_consoles(void);
--- startpar.c
-+++ startpar.c 2010-09-30 15:01:50.787926081 +0200
-@@ -241,14 +241,7 @@ void callsplash(int n, const char *path,
++++ startpar.c 2010-10-12 16:45:32.040429641 +0000
+@@ -52,6 +52,12 @@
+ #include