1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Fix 'plugin' command

This commit is contained in:
Jelmer Vernooij 0001-01-01 00:00:00 +00:00
parent 470a131632
commit b01c55ed5b

View File

@ -56,12 +56,12 @@ static NTSTATUS cmd_load_module(struct samtest_state *st, TALLOC_CTX *mem_ctx, i
char *plugin_arg[2];
NTSTATUS status;
if (argc != 2 && argc != 3) {
printf("Usage: load <module path> [domain-sid]\n");
printf("Usage: load <module path> [domain-name]\n");
return NT_STATUS_OK;
}
if (argc == 3)
asprintf(&plugin_arg[0], "%s|plugin:%s", argv[2], argv[1]);
asprintf(&plugin_arg[0], "plugin:%s|%s", argv[1], argv[2]);
else
asprintf(&plugin_arg[0], "plugin:%s", argv[1]);