MXS-1450 Remove leading whitespace
Leading whitespace is removed from a sent maxadmin command before the command is interpreted.
This commit is contained in:
@ -51,6 +51,7 @@
|
|||||||
#include <maxscale/service.h>
|
#include <maxscale/service.h>
|
||||||
#include <maxscale/spinlock.h>
|
#include <maxscale/spinlock.h>
|
||||||
#include <maxscale/users.h>
|
#include <maxscale/users.h>
|
||||||
|
#include <maxscale/utils.h>
|
||||||
#include <maxscale/version.h>
|
#include <maxscale/version.h>
|
||||||
#include <debugcli.h>
|
#include <debugcli.h>
|
||||||
|
|
||||||
@ -1741,7 +1742,7 @@ execute_cmd(CLI_SESSION *cli)
|
|||||||
bool in_space = false;
|
bool in_space = false;
|
||||||
int nskip = 0;
|
int nskip = 0;
|
||||||
|
|
||||||
args[0] = cli->cmdbuf;
|
args[0] = trim_leading(cli->cmdbuf);
|
||||||
ptr = args[0];
|
ptr = args[0];
|
||||||
lptr = ptr;
|
lptr = ptr;
|
||||||
i = 1;
|
i = 1;
|
||||||
|
Reference in New Issue
Block a user