From 0c04f782865e493945aee466c4fff4e73c36a659 Mon Sep 17 00:00:00 2001 From: Jin Qian Date: Tue, 5 Dec 2017 21:39:40 -0800 Subject: [PATCH] fastboot: fix build break execvpe is a GNU extension. Use execve instead. Change-Id: I8bf4b6a4e9fd0cae0239f4c5aa9707f141460a7d --- fastboot/fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastboot/fs.cpp b/fastboot/fs.cpp index fe5cbc3d7..9949eae41 100644 --- a/fastboot/fs.cpp +++ b/fastboot/fs.cpp @@ -83,7 +83,7 @@ static int exec_e2fs_cmd(const char* path, const char** argv, const char** envp) int status; pid_t child; if ((child = fork()) == 0) { - execvpe(path, const_cast(argv), const_cast(envp)); + execve(path, const_cast(argv), const_cast(envp)); _exit(EXIT_FAILURE); } if (child < 0) {