summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/computer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/computer.c b/tools/computer.c
index 42c3110..fdcaca6 100644
--- a/tools/computer.c
+++ b/tools/computer.c
@@ -285,7 +285,9 @@ adcli_tool_computer_join (adcli_conn *conn,
argc -= optind;
argv += optind;
- if (argc != 0)
+ if (argc == 1)
+ adcli_conn_set_domain_name (conn, argv[0]);
+ else if (argc > 1)
errx (2, "extra arguments specified");
res = adcli_conn_connect (conn);