diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-05-28 23:56:56 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-05-28 23:56:56 +0000 |
commit | 5e6bbdb74e3778598c0638fbd1322dfae9351700 (patch) | |
tree | ef9b5054e42bad96c273cba0e3621d59f809399b /source3/web | |
parent | c0561ff58efa9efd0389718dc1e0fe82068b486e (diff) | |
download | samba-5e6bbdb74e3778598c0638fbd1322dfae9351700.tar.gz samba-5e6bbdb74e3778598c0638fbd1322dfae9351700.tar.bz2 samba-5e6bbdb74e3778598c0638fbd1322dfae9351700.zip |
make sure the umask is set in swat
(This used to be commit 07c74fe83f77c73ff937a31b7df2f211596e9861)
Diffstat (limited to 'source3/web')
-rw-r--r-- | source3/web/swat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c index 0497eeb12a..9126d05914 100644 --- a/source3/web/swat.c +++ b/source3/web/swat.c @@ -345,6 +345,8 @@ static int save_reload(int snum) { FILE *f; + umask(022); + f = sys_fopen(servicesf,"w"); if (!f) { printf("failed to open %s for writing\n", servicesf); |