summaryrefslogtreecommitdiff
path: root/source/l/pulseaudio/0003-no-root-warn.diff
blob: c7d31c414266a2ffc44596ae5fff40b2603b83b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- ./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;
     }