From d2572282354750bc09fb2da4545eae9f276e693c Mon Sep 17 00:00:00 2001 From: weetmuts Date: Mon, 18 Nov 2019 07:33:25 +0100 Subject: [PATCH] Fix bug that prevented /bin/sh in busybox from working. --- src/shell.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/shell.cc b/src/shell.cc index abe7e5c..5774c94 100644 --- a/src/shell.cc +++ b/src/shell.cc @@ -61,7 +61,6 @@ void invokeShell(string program, vector args, vector envs) if (pid == 0) { // I am the child! close(0); // Close stdin - delete[] p; #if defined(__APPLE__) && defined(__MACH__) execve(program.c_str(), (char*const*)&argv[0], (char*const*)&env[0]); #else @@ -131,7 +130,6 @@ bool invokeBackgroundShell(string program, vector args, vector e close(link[1]); close(0); // Close stdin - delete[] p; #if defined(__APPLE__) && defined(__MACH__) execve(program.c_str(), (char*const*)&argv[0], (char*const*)&env[0]); #else