sh: Have only one copy of _PATH_STDPATH in the binary.
This commit is contained in:
parent
6dd8e071f0
commit
35ad337dcd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207783
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user