Only warn when running as root and not --system.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1121 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Pierre Ossman 2006-07-20 13:24:57 +00:00
parent f3d4924473
commit 0762af2aee

View file

@ -437,8 +437,7 @@ int main(int argc, char *argv[]) {
}
if (real_root && !conf->system_instance) {
pa_log(__FILE__": This program is not intended to be run as root (unless --system is specified).");
goto finish;
pa_log_warning(__FILE__": This program is not intended to be run as root (unless --system is specified).");
} else if (!real_root && conf->system_instance) {
pa_log(__FILE__": Root priviliges required.");
goto finish;