delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=dIgSLpzp0HG8mY4gFW06SNkKrV2VCB2uUC/oWm577F2lh4hcUusXR | |
9RlQjYkZeFsBnk3FjwjsbS3KUqg9FLzipC4Ui0HTX9jdjja6qj6EiGtb4k0iBsAp | |
bGxOsblt4IGoHh4HtIw+gdmmpKaGICsNcozF4BT0NuZZypBt016gh0= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=xo0xBePJ/N95HI0WE8JFGTcHkGg=; b=CpSthHPWs3itVyJ8c5FGdeTMku9o | |
UvfcKznHmyNnTfw6bz6GofWhTRZXYBVJHk0c6ixX5YWfePG/ESi9XD4AxFLNxx+8 | |
9QO3jfKoqzMgiqZjl6HnIZHIvMrXCWOB91+EfUllpiiH+JbCUjjpoGVkiZPJS6Mx | |
h6E/ZW6cvIz5QIo= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-0.2 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Fri, 6 Dec 2013 17:33:31 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Problems with Cygwin symlinks on a TrueCrypt volume |
Message-ID: | <20131206163331.GA1266@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <21153 DOT 56522 DOT 988000 DOT 401372 AT woitok DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <21153.56522.988000.401372@woitok.gmail.com> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
--mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Dec 6 15:18, Dr Rainer Woitok wrote: > Greetings, >=20 > I just happened to stumble over the problem described below. >=20 > Additional information: >=20 > - Windows Vista, patched this week. >=20 > - Cygwin updated this week. >=20 > - TrueCrypt downloaded and installed this week. > [...] > $ cd /g > $ ln -s . xx > $ ls -nl xx > lrwxrwxrwx 1 1002 513 1 2013-12-06 11:38 xx -> . > $ rm xx* > rm: cannot remove `xx': Permission denied > $ rm -f xx* > rm: cannot remove `xx': Permission denied > $ ls -nl xx* > lrwxrwxrwx 1 1002 513 1 2013-12-06 11:38 xx -> . > [...] > $ attrib -r 'g:\xx.lnk' > $ rm xx.lnk > $ ls -nl xx* > ls: cannot access xx*: No such file or directory > $=20 > [...] > I really dont't know whether Windows or TrueCrypt is incorrectly inter- > preting the DOS ReadOnly attribute, and thus whose fault this is. I > would simply suggest to change the code of the "rm" command so it ex- > plicitly removes the DOS ReadOnly attribute before it unlinks any ob- > ject. Cygwin's unlink function already removes the R/O attribute if it exists, because the OS equivalent to the POSIX unlink function refuses to remove files with the R/O attribute set. I assume there's some weirdness in the handling of the R/O attribute in TrueCrypt, but that's just speculation. What you can do to help this issue along: The same as above, but run rm under strace: $ strace -o rm.trace rm -f xx The -f flag drops the interactive prompt. I added lots of debug output to the unlink functionality over time, so the rm.trace file should contain a lot of interesting details as to what's going wrong here. Just appand the rm.trace file to your next reply. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) iQIcBAEBAgAGBQJSofxbAAoJEPU2Bp2uRE+gY80P/RtZ4yNtPQTGO//WeQU4OZnR hMb4RJamrg6R4x/C8i24V7nZhKiwSz0o+J9/snsQrXhidHyKwgxlsZo7m2e3Zvyr AQqgbLIQpToWZ2dUVtEQ36b1h/uy/Aji9iN9D7fbUCDxz2BK3GN2Q/U3/g0Gu+96 V06pLDfNmulebUPfN0t2YWGfHm8zHFUhNKIiTZwa44ks6W52Fa6vQva1vUKUY20h M+axNvwLfCPog3NcdhJf69kMGFzf04K3Vays1ytlM/+C6awA40xv6mKfVylOMckz wEK3fGXKAnaUzHr8iP/3eLxhLtZ/A7u2ulza7EkgKIycyoi9MDNkRUfDeMYEs07a VzFqmyJwmggFaGzmqT+6oB6M70T27T4rnEW4dFPEm/rlgsroiT+vqZ18OCjO2QxI qDkaQkNRWWMtoxyf85T4ynT0sE/VaTLycGYgBfIh/XQH3X2HK6j48aLCgzaHqdqH z2vmH6+PYE0qW43O/ZyApQ7SlkCwaG/04S4XLtaDOVsKN16jCZmaUwW63ni9q68c WzJvkDEL/eXEvhR+g0fWlG2mC6JHoZXQLRsHhn9bPlx4MYuEFqfEEBQgE+Kflzyh 6XgSaLAdvk1vPMxFaZuhtTnzwtqxTYJb5Twny5w4k3R1ywKfiN0ujG4llFEsF4dT EMbJM24HeFxby1liwnKH =beCm -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |