diff options
author | Jeremy Allison <jra@samba.org> | 2003-05-07 18:28:24 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-05-07 18:28:24 +0000 |
commit | cf78b1e7fe72aec72d03c86c46a8ca49df539c11 (patch) | |
tree | c51c94b6ce83f8cd14c6eb28f669408355eb0295 /source/web | |
parent | 7645d3d28afbb8eea502c0e063df3afb3aa812f4 (diff) | |
download | samba-cf78b1e7fe72aec72d03c86c46a8ca49df539c11.tar.gz samba-cf78b1e7fe72aec72d03c86c46a8ca49df539c11.tar.xz samba-cf78b1e7fe72aec72d03c86c46a8ca49df539c11.zip |
Make fchown, fchmod conditional for systems that don't have them.
Jeremy.
Diffstat (limited to 'source/web')
-rw-r--r-- | source/web/swat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/web/swat.c b/source/web/swat.c index fa319bb3ae8..7f9492933a5 100644 --- a/source/web/swat.c +++ b/source/web/swat.c @@ -417,7 +417,11 @@ static int save_reload(int snum) /* just in case they have used the buggy xinetd to create the file */ if (fstat(fileno(f), &st) == 0 && (st.st_mode & S_IWOTH)) { +#if defined HAVE_FCHMOD fchmod(fileno(f), S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH); +#else + chmod(dyn_CONFIGFILE, S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH); +#endif } write_config(f, False); |