aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-01-11 17:30:08 +0100
committerDmitry Vyukov <dvyukov@google.com>2016-01-11 17:30:08 +0100
commit46fa57f3b44ccbecfb20067778dae9a7f5a111a5 (patch)
tree78485542199795659caddf355cc8d0a2795ba262 /executor/executor.cc
parent31d1087c3f39cc48bde5983ca43764a366cc0d2c (diff)
executor: use mknodat instead of mknod (the latter is not implemented on android)
Diffstat (limited to 'executor/executor.cc')
-rw-r--r--executor/executor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index d26e97457..7ef506f08 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -550,7 +550,7 @@ void execute_call(thread_t* th)
int fd = open("/dev/fuse", O_RDWR);
if (fd != -1) {
- if (syscall(SYS_mknod, blkdev, S_IFBLK, makedev(7, 199)) == 0) {
+ if (syscall(SYS_mknodat, AT_FDCWD, blkdev, S_IFBLK, makedev(7, 199)) == 0) {
char buf[256];
sprintf(buf, "fd=%d,user_id=%lu,group_id=%lu,rootmode=0%o", fd, uid, gid, (unsigned)mode & ~3u);
if (maxread != 0)