Mail Archives: djgpp-workers/2000/12/31/11:34:49
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 <stdio.h>
#include <errno.h>
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
- Raw text -