diff options
-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); |