svn commit: r207783 - head/bin/sh
Jilles Tjoelker
jilles at FreeBSD.org
Sat May 8 14:00:08 UTC 2010
Author: jilles
Date: Sat May 8 14:00:01 2010
New Revision: 207783
URL: http://svn.freebsd.org/changeset/base/207783
Log:
sh: Have only one copy of _PATH_STDPATH in the binary.
Modified:
head/bin/sh/eval.c
Modified: head/bin/sh/eval.c
==============================================================================
--- head/bin/sh/eval.c Sat May 8 13:49:43 2010 (r207782)
+++ head/bin/sh/eval.c Sat May 8 14:00:01 2010 (r207783)
@@ -1089,8 +1089,7 @@ breakcmd(int argc, char **argv)
int
commandcmd(int argc, char **argv)
{
- static char stdpath[] = _PATH_STDPATH;
- char *path;
+ const char *path;
int ch;
int cmd = -1;
@@ -1101,7 +1100,7 @@ commandcmd(int argc, char **argv)
while ((ch = getopt(argc, argv, "pvV")) != -1) {
switch (ch) {
case 'p':
- path = stdpath;
+ path = _PATH_STDPATH;
break;
case 'v':
cmd = TYPECMD_SMALLV;
More information about the svn-src-all
mailing list