ape: forgot to set errno in access() for dir create fail
This commit is contained in:
parent
4661934e31
commit
a16f5cd2a3
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue