artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1e1a89
)
Change fusefs_link to return EPERM if the source file is a directory.
author
helg
<helg@openbsd.org>
Mon, 27 Nov 2017 22:55:17 +0000
(22:55 +0000)
committer
helg
<helg@openbsd.org>
Mon, 27 Nov 2017 22:55:17 +0000
(22:55 +0000)
Now aligns with link(2) man page and ffs regress tests.
ok phessler@, jca@
sys/miscfs/fuse/fuse_vnops.c
patch
|
blob
|
history
diff --git
a/sys/miscfs/fuse/fuse_vnops.c
b/sys/miscfs/fuse/fuse_vnops.c
index
bf3f86e
..
80585d0
100644
(file)
--- a/
sys/miscfs/fuse/fuse_vnops.c
+++ b/
sys/miscfs/fuse/fuse_vnops.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: fuse_vnops.c,v 1.3
5 2017/11/27 12:54:13
helg Exp $ */
+/* $OpenBSD: fuse_vnops.c,v 1.3
6 2017/11/27 22:55:17
helg Exp $ */
/*
* Copyright (c) 2012-2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
@@
-565,7
+565,7
@@
fusefs_link(void *v)
}
if (vp->v_type == VDIR) {
VOP_ABORTOP(dvp, cnp);
- error = E
ISDIR
;
+ error = E
PERM
;
goto out2;
}
if (dvp->v_mount != vp->v_mount) {