Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 29 Nov 2002 13:49:19 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: gcc, Write and Modify permissions (ntsec) Message-ID: <20021129134919.C1398@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.22.1i On Fri, Nov 29, 2002 at 09:29:29AM +0300, Roman Belenov wrote: > I've noticed that executables generated by gcc (cygwin 1.3.17-1, gcc > 3.2-3, binutils 20021117-1, Windows XP) have Read, Read&Execute and > Write permissions for group and others, ls -l shows their attributes > as -rwxrwxrwx . It seems rather strange - I guess that Write > permission for other users is not necessary. Another oddity is that > chmod always toggles Write and Modify permisisons together, while gcc > (or ld) sets only Write permission without Modify. > > Is this an intended behaviour ? Are there any reasons for it ? umask Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/