public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin/main] Cygwin: chattr: clarify requirements for casesensitive directories
Date: Mon, 27 Mar 2023 18:46:02 +0000 (GMT)	[thread overview]
Message-ID: <20230327184602.7A1083858C83@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=fc6e89c937c1bcdf2b0efc6806e29960c448b756

commit fc6e89c937c1bcdf2b0efc6806e29960c448b756
Author:     Corinna Vinschen <corinna@vinschen.de>
AuthorDate: Mon Mar 27 20:39:26 2023 +0200
Commit:     Corinna Vinschen <corinna@vinschen.de>
CommitDate: Mon Mar 27 20:39:26 2023 +0200

    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>

Diff:
---
 winsup/doc/utils.xml  | 5 +++--
 winsup/utils/chattr.c | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/winsup/doc/utils.xml b/winsup/doc/utils.xml
index 522df85b4ec5..a90db5e665ed 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 e3ab1fba8044..2438d79b482b 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);
 }

                 reply	other threads:[~2023-03-27 18:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230327184602.7A1083858C83@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).