diff options
-rw-r--r-- | libdiskfs/dir-lookup.c | 2 |
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); |