Marcus Meissner
b1519e602b
- Move forward to socket communication within private network - Make haveged survive switch root within initrd (boo#1075359) OBS-URL: https://build.opensuse.org/request/show/622295 OBS-URL: https://build.opensuse.org/package/show/security/haveged?expand=0&rev=116
44 lines
1.2 KiB
Diff
44 lines
1.2 KiB
Diff
Index: haveged-1.9.1/src/haveged.c
|
|
===================================================================
|
|
---
|
|
haveged-1.9.2/src/haveged.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
--- haveged-1.9.2/src/haveged.c
|
|
+++ haveged-1.9.2/src/haveged.c 2018-06-26 08:07:51.430076528 +0000
|
|
@@ -361,8 +361,10 @@ static void daemonize( /* RETURN: no
|
|
void) /* IN: nothing */
|
|
{
|
|
FILE *fh;
|
|
+#if 0
|
|
openlog(params->daemon, LOG_CONS, LOG_DAEMON);
|
|
syslog(LOG_NOTICE, "%s starting up", params->daemon);
|
|
+#endif
|
|
if (daemon(0, 0) == -1)
|
|
error_exit("Cannot fork into the background");
|
|
fh = fopen(params->pid_file, "w");
|
|
@@ -501,7 +503,9 @@ static void error_exit( /* RETURN: no
|
|
#ifndef NO_DAEMON
|
|
if (params->detached!=0) {
|
|
unlink(params->pid_file);
|
|
+#if 0
|
|
syslog(LOG_INFO, "%s: %s", params->daemon, buffer);
|
|
+#endif
|
|
}
|
|
else
|
|
#endif
|
|
@@ -611,11 +615,13 @@ static void print_msg( /* RETURN: no
|
|
va_list ap;
|
|
va_start(ap, format);
|
|
snprintf(buffer, sizeof(buffer), "%s: %s", params->daemon, format);
|
|
+#if 0
|
|
#ifndef NO_DAEMON
|
|
if (params->detached != 0)
|
|
vsyslog(LOG_INFO, buffer, ap);
|
|
else
|
|
#endif
|
|
+#endif
|
|
vfprintf(stderr, buffer, ap);
|
|
va_end(ap);
|
|
}
|