Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 May 2010 14:00:02 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r207783 - head/bin/sh
Message-ID:  <201005081400.o48E02TR034730@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005081400.o48E02TR034730>