delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/03/20:08:23

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <001001c134d7$0ab2fd80$341207d5@andreas>
From: "Andreas Eibach" <a DOT eibach AT gmx DOT net>
To: <cygwin AT cygwin DOT com>
References: <019e01c134cb$11d287e0$76c606d5 AT andreas> <20010904010029 DOT A4947 AT cygbert DOT vinschen DOT de>
Subject: Re: Using external tools KILLS permissions of ASCII files
Date: Tue, 4 Sep 2001 02:17:31 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2501.0001
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2501.0001

----- Original Message -----
From: "Corinna Vinschen" <cygwin AT cygwin DOT com>
To: <cygwin AT cygwin DOT com>
Sent: Tuesday, September 04, 2001 1:00 AM
Subject: Re: Using external tools KILLS permissions of ASCII files


> On Tue, Sep 04, 2001 at 12:52:11AM +0200, Andreas Eibach wrote:
> >  I wrote:
> >  > The only way out seems to be sticking to Cygwin tools _only_ for
editing,
> >  > even 'vi' if you insist.
> >  > But that's would be a bad compromise...
> >
> >  A little add-on to this: I just checked a  -rwxr-x-r-x  file, edited it
> > with
> > vi, and modified it a bit. After saving the file the original
permissions
> > were gone and the file was at -rw-r--r--.
> > How can I change this (or restore the original permissions) at least a
> > _little_ on W9x? Really no way to just _keep_ the original permissions
of a
> > file?
> > *Sigh*
>
> The x-bit on 9x/ME is set _only_ by examining the beginning of the
> file. If it's containing e.g. #!/bin/perl or so, it's executable.

Thank you very very much, Corinna, you've just saved my life. :-)
Honestly, I didn't know this before...(that the shebang determines the
executable status in Cygwin)
Well yes, Dreamweaver 3 _must not_ auto-correct ANYTHING.

Now look at that!

[before]
#!/usr/bin/perl
<BODY text="#000000" bgcolor="#FFFFFF">

[afterwards]
<BODY text="#000000" bgcolor="#FFFFFF">#!/usr/bin/perl

This obviously _cannot_ work.
Fix: Tell Dreamweaver to NEVER rewrite CGI files:
Edit->Preferences->HTML Rewriting
Never Rewrite HTML: In Files with Extensions [...] .cgi [...]
OK.

That did it.
Many thanks again, Corinna. Glad I was able to track that down now with DW.

Andreas


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019