[X2Go-Commits] [libx2goclient] 02/02: src/test/sshtest.c: very simple options checking.
git-admin at x2go.org
git-admin at x2go.org
Mon Jul 22 23:55:52 CEST 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository libx2goclient.
commit b4573c21a3e3773281ea0c9768e803b5fdf7680e
Author: Mihai Moldovan <ionic at ionic.de>
Date: Mon Jul 22 23:55:41 2019 +0200
src/test/sshtest.c: very simple options checking.
---
src/test/sshtest.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/test/sshtest.c b/src/test/sshtest.c
index c26b5cb..7c676b5 100644
--- a/src/test/sshtest.c
+++ b/src/test/sshtest.c
@@ -47,5 +47,13 @@ int main (int argc, char **argv) {
printf (_("SSH testing utility for %s version %s\n\n"), _(PACKAGE_NAME), _(PACKAGE_VERSION));
+ GString *ssh_uri = NULL;
+ if (argc != 1) {
+ fprintf (stderr, _("Error. Program needs exactly one argument: an SSH location specifier.\n"));
+ }
+ else {
+ ssh_uri = g_string_new (argv[1]);
+ }
+
return (EXIT_SUCCESS);
}
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/libx2goclient.git
More information about the x2go-commits
mailing list