diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-12-03 00:37:20 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-12-03 00:37:20 +0100 |
commit | 7adbf78d854b4d119ba2463d4936b882d8d8faa9 (patch) | |
tree | 5230bd0df15f32e4475a3d565568c45e5b955373 /eurephiadm | |
parent | 9e6621369a9c5fe71fcb4330d9388e8adf89c8aa (diff) | |
download | eurephia-7adbf78d854b4d119ba2463d4936b882d8d8faa9.tar.gz eurephia-7adbf78d854b4d119ba2463d4936b882d8d8faa9.tar.xz eurephia-7adbf78d854b4d119ba2463d4936b882d8d8faa9.zip |
BUGFIX: Logout works properly again and improved logout status change
- cmd_Logout(...) used the wrong argv[] index for sessionkey.
- Improved eDBadminValidateSession(...) to set status to '5' on sessions
which are getting logged out due to missing privileges
Diffstat (limited to 'eurephiadm')
-rw-r--r-- | eurephiadm/eurephiadm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eurephiadm/eurephiadm.c b/eurephiadm/eurephiadm.c index 5a46db9..ae189c5 100644 --- a/eurephiadm/eurephiadm.c +++ b/eurephiadm/eurephiadm.c @@ -88,7 +88,7 @@ int cmd_Help(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int a int cmd_Logout(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv) { int rc = 0; - rc = eDBadminLogout(ctx, argv[1]); + rc = eDBadminLogout(ctx, argv[0]); fprintf(stdout, "%s\n", (rc == 1 ? "Logged out succesfully" : "Logout failed.")); return (rc == 0); } |