runc: fix path to runtime directory

This commit is contained in:
Leonid Plyushch 2019-07-14 15:32:35 +03:00 committed by Yaksh Bariya
parent 6d2be8e324
commit 6913bb9888
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -uNr runc-1.0.0-rc8/main.go runc-1.0.0-rc8.mod/main.go
--- runc-1.0.0-rc8/main.go 2019-04-25 00:48:25.000000000 +0300
+++ runc-1.0.0-rc8.mod/main.go 2019-07-14 15:25:25.741022025 +0300
@@ -62,7 +62,7 @@
v = append(v, fmt.Sprintf("spec: %s", specs.Version))
app.Version = strings.Join(v, "\n")
- root := "/run/runc"
+ root := "@TERMUX_PREFIX@/tmp/runc"
if shouldHonorXDGRuntimeDir() {
if runtimeDir := os.Getenv("XDG_RUNTIME_DIR"); runtimeDir != "" {
root = runtimeDir + "/runc"