aboutsummaryrefslogtreecommitdiffstats
path: root/toys/other/nsenter.c
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-09-26 05:28:18 -0700
committerSteve Kondik <steve@cyngn.com>2016-09-26 05:40:17 -0700
commitb5e7cfb667a1dc94add27762e518a4ca3bc24157 (patch)
tree68f8a8ba5b1af182227cf3ba52989ef3221b252a /toys/other/nsenter.c
parent00a7af60ddbe98baa838326809f9b7293929c8b8 (diff)
parenta31c4a356fd541cdaf455bba9e723e6bdb01f8ea (diff)
downloadandroid_external_toybox-b5e7cfb667a1dc94add27762e518a4ca3bc24157.tar.gz
android_external_toybox-b5e7cfb667a1dc94add27762e518a4ca3bc24157.tar.bz2
android_external_toybox-b5e7cfb667a1dc94add27762e518a4ca3bc24157.zip
Merge branch 'master' of https://android.googlesource.com/platform/external/toybox into cm-14.0cm-14.0
Change-Id: I30f7024dc0b625c2a0b34907a640052592c3f8c1
Diffstat (limited to 'toys/other/nsenter.c')
-rw-r--r--toys/other/nsenter.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/toys/other/nsenter.c b/toys/other/nsenter.c
index 13757280..78a9d91a 100644
--- a/toys/other/nsenter.c
+++ b/toys/other/nsenter.c
@@ -152,8 +152,7 @@ void unshare_main(void)
filename = toybuf;
}
- if (setns(fd = xopen(filename, O_RDONLY), flags[i]))
- perror_exit("setns");
+ if (setns(fd = xopenro(filename), flags[i])) perror_exit("setns");
close(fd);
}
nsnames += strlen(nsnames)+1;