execve should set errno
This commit is contained in:
parent
7a20e11aea
commit
cdcc0edb0b
@ -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[]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user