sh: Have only one copy of _PATH_STDPATH in the binary.
This commit is contained in:
parent
4842c29896
commit
6a8de408d7
@ -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