I am reading some source code, and I found this statement at the very beginning of the main procedure:
umask(077);
What could be the reason for this?
The man page (man 2 umask) states:
umask - set file creation mode mask
This cleanup allows each user to restrict the default access to their files.
But I don’t understand why anyone should do this? how's the shortcut?
source
share