Today is not my lucky day. Fix missing brace and I got a request
to use EMLINK instead.
This commit is contained in:
parent
514bc6cb56
commit
100ceca222
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_vnops.c 8.2 (Berkeley) 1/21/94
|
||||
* $Id: vfs_vnops.c,v 1.52 1998/04/06 18:25:21 peter Exp $
|
||||
* $Id: vfs_vnops.c,v 1.53 1998/04/06 18:43:28 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -126,10 +126,10 @@ vn_open(ndp, fmode, cmode)
|
||||
vp = ndp->ni_vp;
|
||||
}
|
||||
if (vp->v_type == VLNK) {
|
||||
error = ELOOP;
|
||||
error = EMLINK;
|
||||
goto bad;
|
||||
}
|
||||
if (vp->v_type == VSOCK)
|
||||
if (vp->v_type == VSOCK) {
|
||||
error = EOPNOTSUPP;
|
||||
goto bad;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user