diff options
-rw-r--r-- | lib/lib.c | 2 | ||||
-rw-r--r-- | main.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -948,7 +948,7 @@ void names_to_pid(char **names, int (*callback)(pid_t pid, char *name)) for (curname = names; *curname; curname++) if (**curname == '/' ? !strcmp(cmd, *curname) - : !strcmp(basename_r(cmd), basename_r(*curname))) + : !strcmp(getbasename(cmd), getbasename(*curname))) if (callback(u, *curname)) break; if (*curname) break; } @@ -202,7 +202,7 @@ int main(int argc, char *argv[]) toys.stacktop = &stack; } - *argv = basename_r(*argv); + *argv = getbasename(*argv); // If nommu can't fork, special reentry path. // Use !stacktop to signal "vfork happened", both before and after xexec() |