This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: rm -f behavior
- From: Douglas Coup <dcoup at obj-sys dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 25 Apr 2014 14:11:59 -0400
- Subject: Re: rm -f behavior
- Authentication-results: sourceware.org; auth=none
- References: <5358260B dot 90807 at obj-sys dot com> <20140424142304 dot GT2339 at calimero dot vinschen dot de> <53592F15 dot 4040309 at obj-sys dot com> <20140424163624 dot GU2339 at calimero dot vinschen dot de> <20140425121614 dot GB5666 at calimero dot vinschen dot de> <535A6FF9 dot 90004 at obj-sys dot com> <20140425145036 dot GE5666 at calimero dot vinschen dot de> <535A7F9B dot 5020804 at obj-sys dot com> <20140425154702 dot GH5666 at calimero dot vinschen dot de>
Objective Systems, Inc.
REAL WORLD ASN.1 AND XML SOLUTIONS
Tel: +1 (484) 875-9841
Fax: +1 (484) 875-9830
Toll-free: (877) 307-6855 (USA only)
http://www.obj-sys.com
On 4/25/2014 11:47 AM, Corinna Vinschen wrote:
Please don't top-post. Thanks.
On Apr 25 11:30, Douglas Coup wrote:
I downloaded the x86/cygwin-inst-20140425.tar.xz file. I assume all
I need to do is run tar xvf against this file? From the output it
certainly looked like it installed the files.
No. Just download the DLL and only install the DLL in place of the old
DLL. Installing the tar inst file under Cygwin doesn't effectively
replace the Cygwin DLL. You should exit all(!) Cygwin processes, mopve
the release DLL out of the way, and move the new DLL in place.
Good shooting, Corinna. The problem has gone away with the new DLL.
But I'm not seeing any difference. I'm still seeing the permission
denied error on rm -f in the scenarios I've described.
Incidentally, the sequence below should have nothing to do with Perforce.
$ touch dac.txt
$ chmod 444 dac.txt
$ rm -f dac.txt
This is being done completely outside of any Perforce workspaces.
Sorry, this isn't helpful. Make sure you're *really* using the correct
Cygwin DLL from the snapshot (uname -a), and if the above sequence
really fails to work, first call `attrib dac.txt' before calling rm to
see if the R/O attribute is set, then call rm under strace again and
send the strace. Also, if the R/O attribute gets set in the above
sequence, I have to know where it comes from. As I said, Cygwin does
not set the flag at all for normal files, not even in chmod.
Corinna
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple