delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/05/00:07:48

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
Date: Mon, 5 Mar 2001 00:04:54 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Bug in Unlink??!! cygwin 1.1.8, Windows 2000 SP1, Novell 5.1
Message-ID: <20010305000454.E8103@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CAEIIBEHOJELFDAHENHIIEKECCAA DOT neil DOT erskine AT jjmackay DOT ca>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <CAEIIBEHOJELFDAHENHIIEKECCAA.neil.erskine@jjmackay.ca>; from neil.erskine@jjmackay.ca on Sun, Mar 04, 2001 at 10:57:54PM -0400

On Sun, Mar 04, 2001 at 10:57:54PM -0400, Neil Erskine wrote:
>Windows 2000 SP1 with Novell client 4.80.
>
>The following was uncovered when trying to get cvs to work on a Novell
>partition:
>
>After running a cvs init to create a repository on a Novell drive (always
>fails),
>a bunch of files have been created on the Novell drive. However, rm won't
>delete
>them, even with the -f option.  If I chmod the files to "u+w", rm then
>works.
>Also, if an "mv editinfo,v t" command is run, the file "t" shows up,
>but the original file does not disappear, and rm won't remove either,
>even if "-f" is specified. This seems to be related to (cause) the cvs
>failure,
>as there is a 1-1 mapping between file sizes of .#nnnn files, and the target
>files.
>
>When run on a Win98 box, cvs still doesn't work, but rm run manually
>works correctly.  John Doucette is submitting a separate report on
>the Win98 behaviour, with cvs debugging output attached, which shows the
>specific unlink operations failing.
>
>When run on Windows 2000 inside a bash shell, rm doesn't print a
>confirmation
>message, which is printed from a console window, so I haven't much output to
>show.
>
>If I change the permission on the files by adding write permission for
>myself
>(chmod u+w), rm and mv then work.
>
>My guess is that the mechanism Cygwin is using to implement read-only files
>is inconsistent with Novell usage.  This would account for the fact that rm
>displays a confirmation prompt when trying to delete these read-only files,
>but it doesn't when I create a read-only file from Bash on a NTFS partition.

Cygwin is using the standard DeleteFile function to delete files and the
standard MoveFile function to rename files.

If you are not using ntsec or ntea, Cygwin uses the standard
SetFileAttributes call to set or clear the read-only bit.

Given the problems you've been mentioning with Novell, I assume that
there is some inexplicable incompatibility with Novell networks and the
Windows API.  Since, to the best of my knowledge, none of the core
cygwin developers use any Novell software and since Cygwin is working
acceptably on standard Window SMB networks, I think you're going to
either have to offer patches to the software to fix the problem or come
up with workarounds.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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