From a7b64b9b52dae1ab49f850376d1d1ce3b2a15946 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 31 Oct 2007 01:17:47 +0100 Subject: [PATCH] command.c: Fix get_cmd_pointer. The old code did not set the handler for afs commands at all. Bad. --- command.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/command.c b/command.c index e294e87c..3a58300e 100644 --- a/command.c +++ b/command.c @@ -376,13 +376,16 @@ static struct server_command *get_cmd_ptr(const char *name, char **handler) for (cmd = server_cmds; cmd->name; cmd++) if (!strcmp(cmd->name, name)) { if (handler) - *handler = para_strdup("para_server"); /* server commands */ + *handler = para_strdup("server"); /* server commands */ return cmd; } /* not found, look for commands supported by afs */ for (cmd = afs_cmds; cmd->name; cmd++) - if (!strcmp(cmd->name, name)) + if (!strcmp(cmd->name, name)) { + if (handler) + *handler = para_strdup("afs"); return cmd; + } return NULL; } -- 2.39.2