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

Patch suggested by Glucose Grin:

gcc -D_FORTIFY_SOURCE=2 causes semfile.c to error out on line 136 'cuz open
doesn't have enough paramaters.
parent f64b0bf5
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ BOOL DLLCALL semfile_signal(const char* fname, const char* text)
if(text==NULL && gethostname(hostname,sizeof(hostname))==0)
text=hostname;
#endif
if((file=open(fname,O_CREAT|O_WRONLY))<0) /* use sopen instead? */
if((file=open(fname,O_CREAT|O_WRONLY,S_IREAD|S_IWRITE))<0) /* use sopen instead? */
return(FALSE);
if(text!=NULL)
write(file,text,strlen(text));
......
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