mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-24 17:03:24 +01:00
Merge pull request #77 from alevy/umask
umask such that stored files are u+rw only
This commit is contained in:
commit
23d47e9539
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user