Author: janderwald
Date: Mon May 22 01:31:20 2006
New Revision: 21975
URL:
http://svn.reactos.ru/svn/reactos?rev=21975&view=rev
Log:
dont allow '=' in the environmental name in the set command
Modified:
trunk/reactos/base/shell/cmd/set.c
Modified: trunk/reactos/base/shell/cmd/set.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/base/shell/cmd/set.c?rev=21…
==============================================================================
--- trunk/reactos/base/shell/cmd/set.c (original)
+++ trunk/reactos/base/shell/cmd/set.c Mon May 22 01:31:20 2006
@@ -119,6 +119,14 @@
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'))