commit | f41f5866cebbf88b6ae09ec8bd00c308f4d9f315 | [log] [tgz] |
---|---|---|
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | Mon Sep 19 03:35:53 2016 +0200 |
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | Fri Oct 14 11:39:49 2016 +0000 |
tree | f8dd43e0d82e34fed3093245504982693255bdb5 | |
parent | f7611c3ceea4afffeded41e287a3200a578e8a5b [diff] |
gsn_restart file: wrap umask change tightly around file creation An fopen("w") error used to omit the umask() call to reinstate the previous umask. Also an fopen("r") at the top will never create a file and hence does not need a umask set. Instead, wrap the umask change and change-back tightly around the single fopen("w") call. Change-Id: If7d948e2f2ba47ecebba5614f18235a53b273d14