]> granicus.if.org Git - sysstat/commit
Fix wrong permissions for data file created by sa1 script
authorSebastien GODARD <sysstat@orange.fr.fake>
Tue, 27 Aug 2013 19:28:33 +0000 (21:28 +0200)
committerSebastien GODARD <sysstat@orange.fr.fake>
Tue, 27 Aug 2013 19:28:33 +0000 (21:28 +0200)
commitda83f3bd29ce04845a986b5be4b1c23a2fd20642
tree24c69a8b99881fd937e779c7cc5d5bed004a6d86
parent8a3533ddca2a444a342dc4c22ffdd206ed849045
Fix wrong permissions for data file created by sa1 script

If HISTORY is greater than 28, the sa1 script does not execute the
command "umask 0022" until after the new output file is created,
allowing it to have the wrong permissions if the root umask is not set
to 0022. So move the umask command above that "if" statement.

Reported-by: Peter Schiffer <pschiffe@redhat.com.fake>
Signed-off-by: Sebastien GODARD <sysstat@orange.fr.fake>
sa1.in