From 2f42469f77ee4ae31b5f5b15778d47ed42e16d0e Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 13 May 2012 01:36:42 +0200 Subject: 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. --- libdiskfs/dir-link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdiskfs/dir-link.c') 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); -- cgit v1.2.3