ape: forgot to set errno in access() for dir create fail

This commit is contained in:
cinap_lenrek 2012-12-03 18:54:56 +01:00
parent 4661934e31
commit a16f5cd2a3

View file

@ -58,6 +58,7 @@ access(const char *name, int mode)
_ultoa(tname+nname+9, getpid());
fd = _CREATE(tname, ORCLOSE, 0666);
if(fd < 0){
_syserrno();
free(tname);
return -1;
}