]> git.cameronkatri.com Git - pw-darwin.git/commit
Force umask to 077 (instead of 000) during the edit phase, to get
authorPierre Beyssac <pb@FreeBSD.org>
Sat, 26 Jun 1999 12:15:39 +0000 (12:15 +0000)
committerPierre Beyssac <pb@FreeBSD.org>
Sat, 26 Jun 1999 12:15:39 +0000 (12:15 +0000)
commit071cc7aa76c53bf1b1f69b50539da010759022c8
tree87f05a1cc13a83a7eff8ee7de7f090448ea285c5
parent58f855136d43c7a2d0230149b4738f9d7acd8b31
Force umask to 077 (instead of 000) during the edit phase, to get
secure permissions in case the user attempts to save something to
a file of his own.

Move umask stuff out of pw_init() into main() for better visibility
of overall umask tweaking logic.

PR: misc/11797
libutil/pw_util.c