mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
15 lines
619 B
Diff
15 lines
619 B
Diff
|
--- ./src/daemon/main.c.orig 2015-10-30 07:16:48.000000000 -0500
|
||
|
+++ ./src/daemon/main.c 2016-01-07 15:05:42.131126245 -0600
|
||
|
@@ -647,10 +647,8 @@
|
||
|
}
|
||
|
|
||
|
#ifdef HAVE_GETUID
|
||
|
- if (getuid() == 0 && !conf->system_instance)
|
||
|
- pa_log_warn(_("This program is not intended to be run as root (unless --system is specified)."));
|
||
|
#ifndef HAVE_DBUS /* A similar, only a notice worthy check was done earlier, if D-Bus is enabled. */
|
||
|
- else if (getuid() != 0 && conf->system_instance) {
|
||
|
+ if (getuid() != 0 && conf->system_instance) {
|
||
|
pa_log(_("Root privileges required."));
|
||
|
goto finish;
|
||
|
}
|