error string substituted for %E in filename

Steve Morris sjm@judgement.com
Fri May 14 20:21:00 GMT 1999


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



More information about the Cygwin mailing list