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

umask such that stored files are u+rw only

This commit is contained in:
Amit Aryeh Levy 2014-02-21 01:25:49 -08:00
parent 4294e39b49
commit a68b733d58

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;