Home | History | Annotate | Download | only in patches
      1 From 860cea0bba7f78cf4cbb78251849e6ef159e6914 Mon Sep 17 00:00:00 2001
      2 From: Steve Muckle <smuckle (a] google.com>
      3 Date: Mon, 9 Oct 2017 15:06:34 -0700
      4 Subject: [PATCH] selftests/exec: use /system/bin/sh
      5 
      6 The Android shell is located at /system/bin/sh.
      7 
      8 Bug: 67016227
      9 Test: run vts-kernel -m VtsKernelLinuxKselftestStaging
     10 Change-Id: I1b33f382325011f507c7a0bb2120e5ff70c2534c
     11 Signed-off-by: Steve Muckle <smuckle (a] google.com>
     12 ---
     13  tools/testing/selftests/exec/execveat.c | 2 +-
     14  1 file changed, 1 insertion(+), 1 deletion(-)
     15 
     16 diff --git a/tools/testing/selftests/exec/execveat.c b/tools/testing/selftests/exec/execveat.c
     17 index 67cd4597db2b..1d1f28894199 100644
     18 --- a/tools/testing/selftests/exec/execveat.c
     19 +++ b/tools/testing/selftests/exec/execveat.c
     20 @@ -372,7 +372,7 @@ static int run_tests(void)
     21  static void prerequisites(void)
     22  {
     23  	int fd;
     24 -	const char *script = "#!/bin/sh\nexit $*\n";
     25 +	const char *script = "#!/system/bin/sh\nexit $*\n";
     26  
     27  	/* Create ephemeral copies of files */
     28  	exe_cp("execveat", "execveat.ephemeral");
     29 -- 
     30 2.16.0.rc1.238.g530d649a79-goog
     31 
     32