dont allow '=' in the environmental name in the set command

svn path=/trunk/; revision=21975
This commit is contained in:
Johannes Anderwald
2006-05-21 21:31:20 +00:00
parent 06847e4576
commit d4aaeed1ff
+8
View File
@@ -119,6 +119,14 @@ INT cmd_set (LPTSTR cmd, LPTSTR param)
if (p)
{
/* set or remove environment variable */
if (p == param)
{
/* handle set =val case */
LoadString(CMD_ModuleHandle, STRING_SYNTAX_COMMAND_INCORRECT, szMsg, RC_STRING_MAX_SIZE);
ConErrPrintf (szMsg, param);
return 0;
}
*p = _T('\0');
p++;
if (*p == _T('\0'))