diff options
| author | Chris Costello <chris@FreeBSD.org> | 2000-06-06 00:35:39 +0000 |
|---|---|---|
| committer | Chris Costello <chris@FreeBSD.org> | 2000-06-06 00:35:39 +0000 |
| commit | f574046378c28ce26fc9a3566f9df58cc285128f (patch) | |
| tree | a6c3352e3246f90d6fd6f96e47ae3e28d28141d6 /sys/miscfs/fdesc | |
| parent | d2cb162e9c69e03b10b070432654cd67a58e9dd6 (diff) | |
Notes
Diffstat (limited to 'sys/miscfs/fdesc')
| -rw-r--r-- | sys/miscfs/fdesc/fdesc_vnops.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/miscfs/fdesc/fdesc_vnops.c b/sys/miscfs/fdesc/fdesc_vnops.c index edfe10566020..4397337636de 100644 --- a/sys/miscfs/fdesc/fdesc_vnops.c +++ b/sys/miscfs/fdesc/fdesc_vnops.c @@ -401,13 +401,17 @@ fdesc_setattr(ap) return (EBADF); /* - * Do not allow anybody to actually setattr anything. + * Allow setattr where there is an underlying vnode. */ switch (fp->f_type) { case DTYPE_FIFO: - case DTYPE_PIPE: case DTYPE_VNODE: + error = VOP_SETATTR((struct vnode *) fp->f_data, ap->a_vap, + ap->a_cred, ap->a_p); + break; + case DTYPE_SOCKET: + case DTYPE_PIPE: case DTYPE_KQUEUE: if (vap->va_flags != VNOVAL) error = EOPNOTSUPP; |
