execve should set errno

This commit is contained in:
K. Lange 2018-09-28 13:10:32 +09:00
parent 7a20e11aea
commit cdcc0edb0b

View File

@ -9,7 +9,7 @@ extern char * getenv(char *);
#define DEFAULT_PATH "/bin:/usr/bin" #define DEFAULT_PATH "/bin:/usr/bin"
int execve(const char *name, char * const argv[], char * const envp[]) { int execve(const char *name, char * const argv[], char * const envp[]) {
return syscall_execve((char*)name,(char**)argv,(char**)envp); __sets_errno(syscall_execve((char*)name,(char**)argv,(char**)envp));
} }
int execvp(const char *file, char *const argv[]) { int execvp(const char *file, char *const argv[]) {