From cab07c0780724042f7257ee83e2c4b478e2f3f14 Mon Sep 17 00:00:00 2001 From: Les Aker Date: Fri, 4 Mar 2016 11:34:29 -0500 Subject: [PATCH] switch shim to be c rather than go --- shim/Makefile | 2 +- shim/main.c | 6 ++++++ shim/main.go | 9 --------- 3 files changed, 7 insertions(+), 10 deletions(-) create mode 100644 shim/main.c delete mode 100755 shim/main.go diff --git a/shim/Makefile b/shim/Makefile index 63e0ff701..4174dc78b 100644 --- a/shim/Makefile +++ b/shim/Makefile @@ -6,6 +6,6 @@ clean: rm shim build: clean - go build + musl-gcc main.c -o shim -static strip shim diff --git a/shim/main.c b/shim/main.c new file mode 100644 index 000000000..c16177e38 --- /dev/null +++ b/shim/main.c @@ -0,0 +1,6 @@ +#include + +int main() { + chmod("/.ducktape", S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH); + return 0; +} diff --git a/shim/main.go b/shim/main.go deleted file mode 100755 index 104bfb911..000000000 --- a/shim/main.go +++ /dev/null @@ -1,9 +0,0 @@ -package main - -import ( - "os" -) - -func main() { - os.Chmod("/.ducktape", 0755) -}