Add _PC_CASE_INSENSITIVE to [f]pathconf

Update the getconf utility to support the new flag as well as
_PC_POSIX_PERMISSIONS and _PC_POSIX_SECURITY.  These were previously
unsupported, probably as an oversight.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Ken Brown
2016-10-20 15:35:54 -04:00
committed by Corinna Vinschen
parent 93374181cb
commit dda82d1a7b
5 changed files with 10 additions and 1 deletions

View File

@ -1891,6 +1891,8 @@ fhandler_base::fpathconf (int v)
return pc.has_acls () || pc.fs_is_nfs ();
set_errno (EINVAL);
break;
case _PC_CASE_INSENSITIVE:
return !!pc.objcaseinsensitive ();
default:
set_errno (EINVAL);
break;