Signed-off-by: Kaarle Ritvanen <kaarle.ritva...@datakunkku.fi>
---
 shell/ash.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/shell/ash.c b/shell/ash.c
index 983f7b1..58ae950 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -7748,7 +7748,7 @@ static void shellexec(char **, const char *, int) 
NORETURN;
 static void
 shellexec(char **argv, const char *path, int idx)
 {
-       char *cmdname;
+       char *cmdpath;
        int e;
        char **envp;
        int exerrno;
@@ -7772,13 +7772,13 @@ shellexec(char **argv, const char *path, int idx)
        } else {
  try_PATH:
                e = ENOENT;
-               while ((cmdname = path_advance(&path, argv[0])) != NULL) {
+               while ((cmdpath = path_advance(&path, argv[0])) != NULL) {
                        if (--idx < 0 && pathopt == NULL) {
-                               tryexec(IF_FEATURE_SH_STANDALONE(-1,) cmdname, 
argv, envp);
+                               tryexec(IF_FEATURE_SH_STANDALONE(-1,) cmdpath, 
argv, envp);
                                if (errno != ENOENT && errno != ENOTDIR)
                                        e = errno;
                        }
-                       stunalloc(cmdname);
+                       stunalloc(cmdpath);
                }
        }
 
-- 
2.9.3

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to