openslp/openslp-1.2.0-daemon.diff

14 lines
495 B
Diff

Index: openslp-1.2.0/slpd/slpd_main.c
===================================================================
--- openslp-1.2.0.orig/slpd/slpd_main.c
+++ openslp-1.2.0/slpd/slpd_main.c
@@ -508,7 +508,7 @@ int Daemonize(const char* pidfile)
close(2);
setsid(); /* will only fail if we are already the process group leader */
- pwent = getpwnam("daemon");
+ pwent = getpwnam("openslp");
/*---------------------*/
/* chroot to slp.reg.d */
/*---------------------*/