www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
Date: | Mon, 10 Aug 2009 17:19:17 +0400 |
Message-ID: | <e2480c70908100619m906f5dfj794823f22c7604bc@mail.gmail.com> |
Subject: | [1.7] cygwin allows writing to readonly files |
From: | Alexey Borzenkov <snaury AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
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 |
Hi, $ echo foo >test.txt $ chmod 0444 test.txt $ echo bar >test.txt This succeeds, even though the file is readonly, and permissions don't allow writing to the file. What's even stranger is that other programs (i.e. Notepad and other editors) can't write to this file, because there are no writing permissions on the file. How does cygwin 1.7 manages to bypass NT permissions in this case? Currently this breaks ExtUtils::MakeMaker, because it expects readonly files not to be writable and test fails. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |