From edbb0cc20709e0599e1490b81aa1841114f3f0bc Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sun, 30 Sep 2012 14:15:27 +0200 Subject: [PATCH] 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(+) diff --git a/libdiskfs/io-pathconf.c b/libdiskfs/io-pathconf.c index 38e277c..bb192fe 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; } -- 1.7.10.4