]> mj.ucw.cz Git - nwho.git/blobdiff - nwhod.c
Make the systemd service be ordered after autofs.service, so that it is ordered befor...
[nwho.git] / nwhod.c
diff --git a/nwhod.c b/nwhod.c
index 443f78a900c1ddb4aa55a3f9f7fd14cfc01bb1ef..9407f6fa0334af796649741e361cc4b0e30969a8 100644 (file)
--- a/nwhod.c
+++ b/nwhod.c
@@ -383,7 +383,12 @@ main(int argc, char **argv)
       }
 
   if (optind == argc-1)
-    client(argv[optind]);
+    {
+      if (argv[optind][0])
+       client(argv[optind]);
+      else
+       server();
+    }
   else if (optind == argc)
     server();
   else