From 22a84a0f4539b35f9a1d0a257fac057dfd85622b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 13 May 2002 22:04:48 +0000 Subject: 2002-05-12 Roland McGrath * dir-lookup.c (diskfs_S_dir_lookup): Fail with EACCES instead of EOPNOTSUPP when attempting to open a special file for io or exec. --- libdiskfs/dir-lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3