Expand the first argument of the ``log'' command if it's a variable.
This commit is contained in:
parent
f2262a32b9
commit
977fe74400
@ -365,7 +365,7 @@ LogCommand(struct cmdargs const *arg)
|
||||
argc = sizeof argv / sizeof argv[0] - 1;
|
||||
log_Printf(LogWARN, "Truncating log command to %d args\n", argc);
|
||||
}
|
||||
command_Expand(argv, argc, arg->argv + arg->argn, arg->bundle, 0, getpid());
|
||||
command_Expand(argv, argc, arg->argv + arg->argn, arg->bundle, 1, getpid());
|
||||
Concatinate(buf, sizeof buf, argc, (const char *const *)argv);
|
||||
log_Printf(LogLOG, "%s\n", buf);
|
||||
command_Free(argc, argv);
|
||||
|
Loading…
Reference in New Issue
Block a user