Fixes chflags. They were silently rejected before but the VFS standard demands

it complains with EOPNOTSUPP.

Fixes chflags test case.
This commit is contained in:
reinoud 2013-07-05 20:40:20 +00:00
parent 16cc237e7c
commit d2126d9622
1 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: udf_vnops.c,v 1.80 2013/07/05 20:04:57 reinoud Exp $ */
/* $NetBSD: udf_vnops.c,v 1.81 2013/07/05 20:40:20 reinoud Exp $ */
/*
* Copyright (c) 2006, 2008 Reinoud Zandijk
@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
__KERNEL_RCSID(0, "$NetBSD: udf_vnops.c,v 1.80 2013/07/05 20:04:57 reinoud Exp $");
__KERNEL_RCSID(0, "$NetBSD: udf_vnops.c,v 1.81 2013/07/05 20:40:20 reinoud Exp $");
#endif /* not lint */
@ -1115,9 +1115,11 @@ udf_chflags(struct vnode *vp, mode_t mode, kauth_cred_t cred)
if (vp->v_mount->mnt_flag & MNT_RDONLY)
return EROFS;
/* XXX we can't do this yet, but erroring out is enoying XXX */
/*
* XXX we can't do this yet, as its not described in the standard yet
*/
return 0;
return EOPNOTSUPP;
}