aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2023-03-27 20:39:26 +0200
committerCorinna Vinschen <corinna@vinschen.de>2023-03-27 20:39:26 +0200
commitfc6e89c937c1bcdf2b0efc6806e29960c448b756 (patch)
tree8e55f803105361eb3ec7327792f82059cb9923a7 /winsup
parent80cea279426fbb03f4954bb8be88fb1a2b5e320b (diff)
downloadnewlib-fc6e89c937c1bcdf2b0efc6806e29960c448b756.zip
newlib-fc6e89c937c1bcdf2b0efc6806e29960c448b756.tar.gz
newlib-fc6e89c937c1bcdf2b0efc6806e29960c448b756.tar.bz2
Cygwin: chattr: clarify requirements for casesensitive directories
- Windows 10 requires WSL - Windows 11 only allows enabling casesensitivity if dir is empty Fixes: 0d4b39d37b966 ("Cygwin: Add lsattr and chattr tools") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup')
-rw-r--r--winsup/doc/utils.xml5
-rw-r--r--winsup/utils/chattr.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/winsup/doc/utils.xml b/winsup/doc/utils.xml
index 522df85..a90db5e 100644
--- a/winsup/doc/utils.xml
+++ b/winsup/doc/utils.xml
@@ -89,8 +89,9 @@
content indexing service
'e', 'Encrypted': file is encrypted
'C', 'Casesensitive': directory is handled case sensitive
- (Windows 10 1803 or later, local NTFS only,
- WSL must be installed)
+ - local NTFS only
+ - Windows 10 1803 or later: requires installed WSL
+ - Windows 11: enabling requires empty dir
</screen>
</refsect1>
</refentry>
diff --git a/winsup/utils/chattr.c b/winsup/utils/chattr.c
index e3ab1fb..2438d79 100644
--- a/winsup/utils/chattr.c
+++ b/winsup/utils/chattr.c
@@ -265,8 +265,9 @@ usage (FILE *stream)
" content indexing service\n"
" 'e', 'Encrypted': file is encrypted\n"
" 'C', 'Casesensitive': directory is handled case sensitive\n"
- " (Windows 10 1803 or later, local NTFS only,\n"
- " WSL must be installed)\n");
+ " - local NTFS only\n"
+ " - Windows 10 1803 or later: requires installed WSL\n"
+ " - Windows 11: enabling requires empty dir\n");
exit (stream == stdout ? 0 : 1);
}