I am reading some source code and I found at the very begin of the main routine this statement:
umask(077);
What could be the reason for that?
The man page (man 2 umask) states:
umask -- set file creation mode mask
This clearing allows each user to restrict the default access to his files
But is not clear to me why would do that? as a shortcut ?