delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1996/10/13/12:19:11

From: dj AT delorie DOT com (DJ Delorie)
Subject: Re: RCS for gnu-win 32
13 Oct 1996 12:19:11 -0700 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199610131829.OAA29963.cygnus.gnu-win32@delorie.com>
Original-To: noer AT cygnus DOT com
Original-CC: anatoly AT missinglink DOT co DOT il, ben AT c-lab DOT de, gnu-win32 AT cygnus DOT com
In-reply-to: <199610130747.AAA02649@cirdan.cygnus.com> (message from Geoffrey
Noer on Sun, 13 Oct 1996 00: 47:30 -0700 (PDT))
Original-Sender: owner-gnu-win32 AT cygnus DOT com

We did the same thing in the djgpp unlink().  Similarly, we had to
code a complete recursive rename() function for renaming directories -
unix allows it, dos/nt does not.

> > The only thing
> > I had to worry about was (and this info may be useful for the Cygnus
> > itself): NT does not allow to delete read-only file even if the directory
> > where it lives has appropriate permissions (unlike UNIX), but it does
> > allow to change the permissions of the file.
> 
> Yep, I'm probably changing unlink() in the dll to always chmod read only
> files to read-write before attempting deletion.  The unlink() system call
> under UNIX can delete read-only files so this change is called for.
> 
> This change should fix the problem with -f not working in the fileutils
> like rm and cp.
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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