diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-05-13 01:36:42 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-05-13 01:36:42 +0200 |
commit | 2f42469f77ee4ae31b5f5b15778d47ed42e16d0e (patch) | |
tree | 114975bf888d2f35b1ac9d0f98a83cacb7d4130f /libdiskfs | |
parent | 980e2112cf7a987df40b3157a417ad0e3a831476 (diff) |
Fix link(directory,whatever) POSIX compliancy
* libdiskfs/dir-link.c (diskfs_S_dir_link): When source node is a directory,
fail with EPERM instead of EISDIR.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/dir-link.c | 2 |
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); |