From 46fa57f3b44ccbecfb20067778dae9a7f5a111a5 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 11 Jan 2016 17:30:08 +0100 Subject: executor: use mknodat instead of mknod (the latter is not implemented on android) --- executor/executor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor/executor.cc') 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) -- cgit mrf-deployment