This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
error string substituted for %E in filename
- To: cygwin@sourceware.cygnus.com
- Subject: error string substituted for %E in filename
- From: Steve Morris <sjm@judgement.com>
- cc: sjm@judgement.com
Why does this program create a file named ".new.error 2D.1". That
surely wasn't my intention and is croaking cvs client when checking
out a file called "%ED.1". Obviously something thinks "%E" should be
expanded to the current error string but in the open command? Not what
I would have expected.
Do I have to quote % to work around this?
config: cygwin 20.1, NT 4.
-------------------------------------------------------------------------
#include "sys/types.h"
#include "sys/stat.h"
#include "fcntl.h"
main ()
{
int fd;
fd = open (".new.%ED.1",
(O_WRONLY | O_CREAT | O_TRUNC),
0777);
close(fd);
}
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com