summaryrefslogtreecommitdiff
path: root/libdiskfs/dir-lookup.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-13 22:04:48 +0000
committerRoland McGrath <roland@gnu.org>2002-05-13 22:04:48 +0000
commit22a84a0f4539b35f9a1d0a257fac057dfd85622b (patch)
treee8511b26a497d4516bf96c7b137c3fe9787b3f64 /libdiskfs/dir-lookup.c
parent91964675b96498145dbde3e4aa079d3ed6a482f9 (diff)
2002-05-12 Roland McGrath <roland@frob.com>
* dir-lookup.c (diskfs_S_dir_lookup): Fail with EACCES instead of EOPNOTSUPP when attempting to open a special file for io or exec.
Diffstat (limited to 'libdiskfs/dir-lookup.c')
-rw-r--r--libdiskfs/dir-lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c
index 54ff85ad..56c9587e 100644
--- a/libdiskfs/dir-lookup.c
+++ b/libdiskfs/dir-lookup.c
@@ -430,7 +430,7 @@ diskfs_S_dir_lookup (struct protid *dircred,
type == S_IFIFO)
&& (flags & (O_READ|O_WRITE|O_EXEC)))
|| (type == S_IFLNK && (flags & (O_WRITE|O_EXEC))))
- error = EOPNOTSUPP;
+ error = EACCES;
if (!error && (flags & O_READ))
error = fshelp_access (&np->dn_stat, S_IREAD, dircred->user);