diff options
Diffstat (limited to 'sesman/tools')
-rw-r--r-- | sesman/tools/sesadmin.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sesman/tools/sesadmin.c b/sesman/tools/sesadmin.c index fcf995d8..3415b75b 100644 --- a/sesman/tools/sesadmin.c +++ b/sesman/tools/sesadmin.c @@ -101,7 +101,14 @@ int main(int argc, char **argv) if (0 == g_strncmp(user, "", 1)) { - g_strncpy(user, "root", 256); + cmndHelp(); + return 0; + } + + if (0 == g_strncmp(cmnd, "", 1)) + { + cmndHelp(); + return 0; } if (0 == g_strncmp(pass, "", 1)) @@ -171,7 +178,7 @@ void cmndHelp() fprintf(stderr, "sesadmin - a console sesman administration tool\n"); fprintf(stderr, "syntax: sesadmin [] COMMAND [OPTIONS]\n\n"); fprintf(stderr, "-u=<username>: username to connect to sesman [MANDATORY]\n"); - fprintf(stderr, "-p=<password>: password to connect to sesman [MANDATORY]\n"); + fprintf(stderr, "-p=<password>: password to connect to sesman (asked if not given)\n"); fprintf(stderr, "-s=<hostname>: sesman host (default is localhost)\n"); fprintf(stderr, "-i=<port> : sesman port (default 3350)\n"); fprintf(stderr, "-c=<command> : command to execute on the server [MANDATORY]\n"); |