From d718a8b59d1f48abcff7f5626a237c1998fc83d5 Mon Sep 17 00:00:00 2001 From: Michal Nazarewicz Date: Sun, 19 Jul 2009 08:17:55 +0200 Subject: daemon: added "group" configuration option The "group" configuration option is similar to "user" as it sets user set what group MPD shall run as. With "user" option, MPD changed GID to the GID of the user, however, more control could be desired. Moreover, the patch changes the way of checking whether no setuid(2)/setgid(2) is required -- previously user names were compered, now UID and GIDs are compered (ie. the one we already have (getuid(2)/getgid(2)) with the one we want to change to). --- src/daemon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/daemon.h') diff --git a/src/daemon.h b/src/daemon.h index 5b3f9a7d..46a4c4f7 100644 --- a/src/daemon.h +++ b/src/daemon.h @@ -23,7 +23,7 @@ #include void -daemonize_init(const char *user, const char *pidfile); +daemonize_init(const char *user, const char *group, const char *pidfile); void daemonize_finish(void); -- cgit v1.2.3