From: Martin Str|mberg Message-Id: <200012311634.RAA18870@father.ludd.luth.se> Subject: Re: DOZE and WINDOZE versions In-Reply-To: from Tim Van Holder at "Dec 31, 2000 04:42:15 pm" To: djgpp-workers AT delorie DOT com Date: Sun, 31 Dec 2000 17:34:37 +0100 (MET) X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk According to Tim Van Holder: > > I've tried running "mv a b" with success. Doesn't mv use rename()? > No; IIRC, it is basically a cp followed by an rm, code-wise. > Then again, it's been a while since I fiddled with fileutils, so I > may be wrong. Ok, but this program works just fine (if the file a exists): #include #include int main(void) { int ret; ret = rename( "a", "b" ); printf("ret = %d, errno = %d.\n", ret, errno); return 0; } > Below is a simple program that lowercases all file and directory > names in the current dir. Does this work on WinME too? > Make sure you try it in a variety of places (network drives, dirs > with LFN files, SUBSTed drives, ...). Yes, but this program is lowercasing things. I just saw that Eli commited some patches in cvs for this. Am I to understand that with those patches, the following program doesn't work? (I haven't tried that yet as I can't recompile libc for the moment.) I want to know how to reproduce the (original) problem. Right, MartinS