delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
Message-ID: | <436B261F.9000109@isonews2.com> |
Date: | Fri, 04 Nov 2005 04:13:03 -0500 |
From: | Arturus Magi <sailorleo AT isonews2 DOT com> |
Reply-To: | sailorleo AT isonews2 DOT com |
User-Agent: | Mozilla Thunderbird 1.0.2 (Windows/20050317) |
MIME-Version: | 1.0 |
To: | David Rasmussen <david DOT rasmussen AT gmx DOT net> |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: Executable flag |
References: | <102620052059 DOT 5236 DOT 435FEE1400022CF60000147422007348300A050E040D0C079D0A AT comcast DOT net> <435FEED2 DOT 3040309 AT gmx DOT net> |
In-Reply-To: | <435FEED2.3040309@gmx.net> |
X-IsSubscribed: | yes |
David Rasmussen wrote: > > Open cygwin. Write 'notepad test.txt'. Notepad opens, write something > and then save the file. Now do an ll. The file test.txt has been created > and has the executable flag set. I want it to not be set in such cases. > Part of the reason for this is because on Windows the executable flag means more than just execution. A number of dynamic use functions (the font manager, for one) require anything they operate with to be executable as well. So *everything* gets set executable, and Windows utilities depend on the file extension to determine if a file is executable. If you're poking directly as Windows APIs, like Cygwin does, that can be worked around, both to remove the need for +x in most cases and to allow +x files that do not use an extension legacy Windows treats as executable to be executed. If you're using a Windows program that you didn't write yourself to ignore standard Windows conventions, there is no way to stop it. Get used to using setacls or cacls a lot. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |