diff options
Diffstat (limited to 'guts/__xmknodat.c')
-rw-r--r-- | guts/__xmknodat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guts/__xmknodat.c b/guts/__xmknodat.c index 6bd0761..cca6a96 100644 --- a/guts/__xmknodat.c +++ b/guts/__xmknodat.c @@ -44,12 +44,12 @@ buf.st_mode = (PSEUDO_DB_MODE(buf.st_mode, mode) & 07777) | (mode & ~07777); buf.st_rdev = *dev; - msg = pseudo_client_op(OP_MKNOD, -1, dirfd, path, &buf); + msg = pseudo_client_op(OP_MKNOD, 0, -1, dirfd, path, &buf); if (!msg) { errno = ENOSYS; rc = -1; } else if (msg->result != RESULT_SUCCEED) { - errno = msg->xerrno; + errno = EPERM; rc = -1; } else { rc = 0; |