Subject: port-i386/2629: "mv" fails on MSDOS filesystem when destination exists
To: None <gnats-bugs@NetBSD.ORG>
From: None <explorer@flame.org>
List: netbsd-bugs
Date: 07/15/1996 12:20:15
>Number:         2629
>Category:       port-i386
>Synopsis:       "mv" fails on MSDOS filesystem when destination exists
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 15 12:35:02 1996
>Last-Modified:
>Originator:     Michael Graff
>Organization:
cygnus.com: Cygnus Support
>Release:        15-Jul-1996
>Environment:
	
System: NetBSD lenin.cygnus.com 1.2A NetBSD 1.2A (LENIN) #0: Wed Jul 10 14:35:39 EDT 1996 explorer@zhaneel.flame.org:/usr/src/sys/arch/i386/compile/LENIN i386


>Description:
Moving a filename on an MSDOS filesystem fails when the destinition
exists.
>How-To-Repeat:
	% touch foo
	% touch bar
	% mv foo bar
	mv: rename foo to bar: File exists

>Fix:
Unknown.  I just put unlink() just before I call rename() in my C code.
This is clearly a hack.

>Audit-Trail:
>Unformatted: