slackware-current/source/l/pulseaudio/0003-no-root-warn.diff

15 lines
619 B
Diff
Raw Normal View History

--- ./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;
}