Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From 4421c2e19946dcd651fd8ac022b96627fc526149 Mon Sep 17 00:00:00 2001 |
| 2 | From: Fathi Boudra <fabo@debian.org> |
| 3 | Date: Wed, 7 Sep 2016 12:58:47 +0300 |
| 4 | Subject: [PATCH] adb: define shell command |
| 5 | |
| 6 | we intend to run on Linux system so the shell is always /bin/sh, |
| 7 | for the host or the target. |
| 8 | |
| 9 | Upstream-Status: Inappropriate |
| 10 | --- |
| 11 | adb/services.c | 4 ---- |
| 12 | 1 file changed, 4 deletions(-) |
| 13 | |
| 14 | diff --git a/adb/services.c b/adb/services.c |
| 15 | index 21b08dc201..d44b0c5068 100644 |
| 16 | --- a/adb/services.c |
| 17 | +++ b/adb/services.c |
| 18 | @@ -299,11 +299,7 @@ static int create_subproc_raw(const char *cmd, const char *arg0, const char *arg |
| 19 | } |
| 20 | #endif /* !ABD_HOST */ |
| 21 | |
| 22 | -#if ADB_HOST |
| 23 | #define SHELL_COMMAND "/bin/sh" |
| 24 | -#else |
| 25 | -#define SHELL_COMMAND "/system/bin/sh" |
| 26 | -#endif |
| 27 | |
| 28 | #if !ADB_HOST |
| 29 | static void subproc_waiter_service(int fd, void *cookie) |