summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdiskfs/dir-link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/dir-link.c b/libdiskfs/dir-link.c
index 7cc88633..81a45b5f 100644
--- a/libdiskfs/dir-link.c
+++ b/libdiskfs/dir-link.c
@@ -45,7 +45,7 @@ diskfs_S_dir_link (struct protid *dircred,
if (S_ISDIR (np->dn_stat.st_mode))
{
mutex_unlock (&np->lock);
- return EISDIR;
+ return EPERM;
}
mutex_unlock (&np->lock);