summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2012-09-30 14:15:27 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-09-30 14:36:44 +0200
commitb6768b326c2e80f5c2326ab46459644d417c6e98 (patch)
tree93f01b483149ab4b3740257c5c38cdf6c62f0c69
parent4d27475d07ab767ccbafebe131b62e4991d335f1 (diff)
libdiskfs: handle _PC_2_SYMLINKS in pathconf
Advertize the possibility to handle symlinks depending on DISKFS_SHORTCUT_SYMLINK. * libdiskfs/io-pathconf.c (diskfs_S_io_pathconf): Handle _PC_2_SYMLINKS too.
-rw-r--r--libdiskfs/io-pathconf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdiskfs/io-pathconf.c b/libdiskfs/io-pathconf.c
index 38e277c3..bb192fe3 100644
--- a/libdiskfs/io-pathconf.c
+++ b/libdiskfs/io-pathconf.c
@@ -72,6 +72,10 @@ diskfs_S_io_pathconf (struct protid *cred,
*value = 32;
break;
+ case _PC_2_SYMLINKS:
+ *value = diskfs_shortcut_symlink ? 1 : 0;
+ break;
+
default:
return EINVAL;
}