summaryrefslogtreecommitdiffstats
path: root/bin/sh/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/exec.c')
-rw-r--r--bin/sh/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/exec.c b/bin/sh/exec.c
index 1b8d3c7..c9d4126 100644
--- a/bin/sh/exec.c
+++ b/bin/sh/exec.c
@@ -365,7 +365,7 @@ find_command(const char *name, struct cmdentry *entry, int act,
for (;(fullname = padvance(&path, name)) != NULL; stunalloc(fullname)) {
idx++;
if (pathopt) {
- if (prefix("func", pathopt)) {
+ if (strncmp(pathopt, "func", 4) == 0) {
/* handled below */
} else {
continue; /* ignore unimplemented options */
OpenPOWER on IntegriCloud