Mail Archives: cygwin/1996/10/13/12:19:11
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 -