mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-30 08:03:26 +01:00
umask such that stored files are u+rw only
This commit is contained in:
parent
4294e39b49
commit
a68b733d58
@ -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