mirror of
https://github.com/fadden/nulib2.git
synced 2024-06-17 14:29:29 +00:00
Win32 fix
This commit is contained in:
parent
e7bf743afd
commit
ad2ec98e8b
|
@ -401,7 +401,7 @@ int TestExtract(NuArchive* pArchive, const char* entryNameMOR)
|
|||
(void) NuFreeDataSink(pDataSink);
|
||||
|
||||
printf("... confirming extraction of '%s'\n", entryNameUNI);
|
||||
if (access(entryNameUNI, R_OK) != 0) {
|
||||
if (access(entryNameUNI, F_OK) != 0) {
|
||||
fprintf(stderr, "ERROR: unable to read '%s' (err=%d)\n",
|
||||
entryNameUNI, errno);
|
||||
free(entryNameUNI);
|
||||
|
@ -493,7 +493,7 @@ int DoTests(void)
|
|||
}
|
||||
pArchive = NULL;
|
||||
|
||||
if (access(kTestArchive, R_OK) != 0) {
|
||||
if (access(kTestArchive, F_OK) != 0) {
|
||||
fprintf(stderr, "ERROR: did not find %s (err=%d)\n", kTestArchive, err);
|
||||
goto failed;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user