Expand the first argument of the ``log'' command if it's a variable.

This commit is contained in:
Brian Somers 2001-11-22 04:23:49 +00:00
parent 4c8ef1e668
commit a12856cfee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86760

View File

@ -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);