From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 7A1083858C83; Mon, 27 Mar 2023 18:46:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A1083858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679942762; bh=vO6uvs2CMuemH9djr5v0FI90QP1D47itPS4GFk+EBuc=; h=From:To:Subject:Date:From; b=RzbtZxGo09VDGQ/P3gtqsiGy7pOIzvHsBwzRd0mlbmWSlBzS/Bt0zea6wOKhm7zxL tWiiqHLUDUSaTkhk9zxrFVeTMrTGhLdF1k8XzLGdMmA/9zAO5wqHoK1kBV/8ldWVrS xwX5fNAGsdF/mHoF4rDWuijgboqZSeiqdQbmOQu8= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/main] Cygwin: chattr: clarify requirements for casesensitive directories X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/main X-Git-Oldrev: 80cea279426fbb03f4954bb8be88fb1a2b5e320b X-Git-Newrev: fc6e89c937c1bcdf2b0efc6806e29960c448b756 Message-Id: <20230327184602.7A1083858C83@sourceware.org> Date: Mon, 27 Mar 2023 18:46:02 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Dfc6e89c937c= 1bcdf2b0efc6806e29960c448b756 commit fc6e89c937c1bcdf2b0efc6806e29960c448b756 Author: Corinna Vinschen AuthorDate: Mon Mar 27 20:39:26 2023 +0200 Commit: Corinna Vinschen CommitDate: Mon Mar 27 20:39:26 2023 +0200 Cygwin: chattr: clarify requirements for casesensitive directories =20 - Windows 10 requires WSL - Windows 11 only allows enabling casesensitivity if dir is empty =20 Fixes: 0d4b39d37b966 ("Cygwin: Add lsattr and chattr tools") Signed-off-by: Corinna Vinschen 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 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 instal= led WSL\n" + " - Windows 11: enabling requires empty dir\n= "); exit (stream =3D=3D stdout ? 0 : 1); }