Skip to content
Snippets Groups Projects
Commit 3f852433 authored by rswindell's avatar rswindell
Browse files

Use of SH_DENYNO must be cooperative (no enforcement on Unix).

parent fc3d54c6
No related branches found
No related tags found
No related merge requests found
......@@ -266,9 +266,7 @@ static void sopen_test_thread(void* arg)
{
int fd;
if((fd=sopen(LOCK_FNAME,O_RDWR,SH_DENYNO))!=-1)
printf("!FAILURE: allowed to reopen with SH_DENYNO\n");
else if((fd=sopen(LOCK_FNAME,O_RDWR,SH_DENYWR))!=-1)
if((fd=sopen(LOCK_FNAME,O_RDWR,SH_DENYWR))!=-1)
printf("!FAILURE: allowed to reopen with SH_DENYWR\n");
else if((fd=sopen(LOCK_FNAME,O_RDWR,SH_DENYRW))!=-1)
printf("!FAILURE: allowed to reopen with SH_DENYRW\n");
......@@ -277,4 +275,4 @@ static void sopen_test_thread(void* arg)
if(fd!=-1)
close(fd);
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment