summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2014-10-13 15:23:35 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2014-10-13 15:23:35 +0000
commit486f47e9c4bd5bdfe1f7934e1fa34c5ef2a37657 (patch)
tree743da7746ee52b8271f1ea7bf441a80578077a88
parent998a331c927ea34ed94df726942adff020e16c87 (diff)
POSIX says that mknod(2) should support fifos. OK guenther@
-rw-r--r--sys/kern/vfs_syscalls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 941b40f08ae..0910707eb98 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_syscalls.c,v 1.209 2014/09/18 02:15:04 uebayasi Exp $ */
+/* $OpenBSD: vfs_syscalls.c,v 1.210 2014/10/13 15:23:34 millert Exp $ */
/* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */
/*
@@ -1211,6 +1211,8 @@ domknodat(struct proc *p, int fd, const char *path, mode_t mode, dev_t dev)
int error;
struct nameidata nd;
+ if (S_ISFIFO(mode) && dev == 0)
+ return (domkfifoat(p, fd, path, mode));
if ((error = suser(p, 0)) != 0)
return (error);
if (p->p_fd->fd_rdir)