diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-23 17:24:50 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-23 17:24:50 +0100 |
commit | a7a456002e91d9f13793e23aab4c24519c4e87c7 (patch) | |
tree | 6a108dc6d43c0bcb8d20cbf4745665d338afd030 /Userland | |
parent | d7753c7c8d07b347014b9bbb1be75c0eac27280c (diff) | |
download | serenity-a7a456002e91d9f13793e23aab4c24519c4e87c7.zip |
LibC: Enough compat work to make binutils-2.32 build and run.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/sh.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Userland/sh.cpp b/Userland/sh.cpp index 9ac70d36f8..c5795853eb 100644 --- a/Userland/sh.cpp +++ b/Userland/sh.cpp @@ -263,10 +263,20 @@ static int try_exec(const char* path, char** argv) int ret = execve(path, argv, environ); assert(ret < 0); + { const char* search_path = "/bin"; char pathbuf[128]; sprintf(pathbuf, "%s/%s", search_path, argv[0]); ret = execve(pathbuf, argv, environ); + assert(ret < 0); + } + + { + const char* search_path = "/usr/bin"; + char pathbuf[128]; + sprintf(pathbuf, "%s/%s", search_path, argv[0]); + ret = execve(pathbuf, argv, environ); + } if (ret == -1) return -1; return ret; |