Skip to content

Commit

Permalink
Merge pull request #496 from jaypikay/master
Browse files Browse the repository at this point in the history
Do not make pcapng files executable.
  • Loading branch information
ZerBea authored Jan 26, 2025
2 parents 1ba0862 + 290b45a commit ba68bf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hcxdumptool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ if(pcapngoutname == NULL)
}
else pcapngfilename = pcapngoutname;
umask(0);
if((fd_pcapng = open(pcapngfilename, O_WRONLY | O_TRUNC | O_CREAT, 0777)) < 0) return false;
if((fd_pcapng = open(pcapngfilename, O_WRONLY | O_TRUNC | O_CREAT, 0644)) < 0) return false;
if(writeshb() == false) return false;
if(writeidb() == false) return false;
if(writecb() == false) return false;
Expand Down Expand Up @@ -4124,7 +4124,7 @@ if(hcxposoutname == NULL)
hcxposfilename = hcxposname;
}
else hcxposfilename = hcxposoutname;
if((fd_hcxpos = open(hcxposfilename, O_WRONLY | O_CREAT, 0777)) < 0) return false;
if((fd_hcxpos = open(hcxposfilename, O_WRONLY | O_CREAT, 0644)) < 0) return false;
return true;
}
/*---------------------------------------------------------------------------*/
Expand Down

0 comments on commit ba68bf2

Please sign in to comment.