mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-17 08:00:48 +01:00
Don't depend on FIFO being defined to enable mkfifo.
It is now always compiled. Submitted by: bde
This commit is contained in:
parent
dc14cd9f1b
commit
61f84e5b27
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22604
@ -1037,9 +1037,6 @@ mkfifo(p, uap, retval)
|
||||
} */ *uap;
|
||||
register_t *retval;
|
||||
{
|
||||
#ifndef FIFO
|
||||
return (EOPNOTSUPP);
|
||||
#else
|
||||
struct vattr vattr;
|
||||
int error;
|
||||
struct nameidata nd;
|
||||
@ -1061,7 +1058,6 @@ mkfifo(p, uap, retval)
|
||||
vattr.va_mode = (SCARG(uap, mode) & ALLPERMS) &~ p->p_fd->fd_cmask;
|
||||
VOP_LEASE(nd.ni_dvp, p, p->p_ucred, LEASE_WRITE);
|
||||
return (VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr));
|
||||
#endif /* FIFO */
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1037,9 +1037,6 @@ mkfifo(p, uap, retval)
|
||||
} */ *uap;
|
||||
register_t *retval;
|
||||
{
|
||||
#ifndef FIFO
|
||||
return (EOPNOTSUPP);
|
||||
#else
|
||||
struct vattr vattr;
|
||||
int error;
|
||||
struct nameidata nd;
|
||||
@ -1061,7 +1058,6 @@ mkfifo(p, uap, retval)
|
||||
vattr.va_mode = (SCARG(uap, mode) & ALLPERMS) &~ p->p_fd->fd_cmask;
|
||||
VOP_LEASE(nd.ni_dvp, p, p->p_ucred, LEASE_WRITE);
|
||||
return (VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr));
|
||||
#endif /* FIFO */
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user