]> code.delx.au - pulseaudio/commitdiff
don't allow --start in system mode
authorLennart Poettering <lennart@poettering.net>
Wed, 30 Jul 2008 18:36:34 +0000 (20:36 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 30 Jul 2008 18:36:34 +0000 (20:36 +0200)
src/daemon/main.c

index a8880a30626ecd459ce033da000c9e47faa34477..5fc9f01ce52d092b2493793333b98e03a5ca46f8 100644 (file)
@@ -627,6 +627,11 @@ int main(int argc, char *argv[]) {
         goto finish;
     }
 
+    if (conf->cmd == PA_CMD_START && conf->system_instance) {
+        pa_log("--start not supported for system instances.");
+        goto finish;
+    }
+
     if (conf->cmd == PA_CMD_START) {
         /* If we shall start PA only when it is not running yet, we
          * first take the autospawn lock to make things