From b6768b326c2e80f5c2326ab46459644d417c6e98 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sun, 30 Sep 2012 14:15:27 +0200 Subject: 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. --- libdiskfs/io-pathconf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libdiskfs') 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; } -- cgit v1.2.3