1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-24 17:33:24 +01:00

Merge pull request #77 from alevy/umask

umask such that stored files are u+rw only
This commit is contained in:
JFreegman 2014-02-21 18:31:15 -05:00
commit 23d47e9539

View File

@ -470,6 +470,9 @@ int main(int argc, char *argv[])
int i = 0;
int f_use_ipv4 = 0;
// Make sure all written files are read/writeable only by the current user.
umask(S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
for (i = 0; i < argc; ++i) {
if (argv[i] == NULL)
break;