]> 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 480fd001f85267270b81b41cd1cc235f9715930a..9407f6fa0334af796649741e361cc4b0e30969a8 100644 (file)
--- a/nwhod.c
+++ b/nwhod.c
@@ -382,8 +382,13 @@ main(int argc, char **argv)
        usage();
       }
 
-  if (optind == argc-1 && argv[optind][0])
-    client(argv[optind]);
+  if (optind == argc-1)
+    {
+      if (argv[optind][0])
+       client(argv[optind]);
+      else
+       server();
+    }
   else if (optind == argc)
     server();
   else