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

Use DEFFILEMODE for file creation mode in smb_addcrc() - another potential

for file permissions issues when smblib creates *.sch files.
parent 34a65a1f
No related branches found
No related tags found
No related merge requests found
......@@ -1450,7 +1450,7 @@ int SMBCALL smb_addcrc(smb_t* smb, uint32_t crc)
SAFEPRINTF(str,"%s.sch",smb->file);
while(1) {
if((file=sopen(str,O_RDWR|O_CREAT|O_BINARY,SH_DENYRW,S_IREAD|S_IWRITE))!=-1)
if((file=sopen(str,O_RDWR|O_CREAT|O_BINARY,SH_DENYRW, DEFFILEMODE))!=-1)
break;
if(get_errno()!=EACCES && get_errno()!=EAGAIN) {
safe_snprintf(smb->last_error,sizeof(smb->last_error)
......
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