aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/android-tools/android-tools/core/0003-adb-define-shell-command.patch
blob: cf1d9cbc3d5a5801cc6046e1fa81403ffbb5317a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 4421c2e19946dcd651fd8ac022b96627fc526149 Mon Sep 17 00:00:00 2001
From: Fathi Boudra <fabo@debian.org>
Date: Wed, 7 Sep 2016 12:58:47 +0300
Subject: [PATCH] adb: define shell command

we intend to run on Linux system so the shell is always /bin/sh,
for the host or the target.

Upstream-Status: Inappropriate
---
 adb/services.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/adb/services.c b/adb/services.c
index 21b08dc201..d44b0c5068 100644
--- a/adb/services.c
+++ b/adb/services.c
@@ -299,11 +299,7 @@ static int create_subproc_raw(const char *cmd, const char *arg0, const char *arg
 }
 #endif  /* !ABD_HOST */
 
-#if ADB_HOST
 #define SHELL_COMMAND "/bin/sh"
-#else
-#define SHELL_COMMAND "/system/bin/sh"
-#endif
 
 #if !ADB_HOST
 static void subproc_waiter_service(int fd, void *cookie)