From fae80fe1a050b36dbf862ae1ac9170fea247b0a9 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 7 May 2003 18:28:24 +0000 Subject: Make fchown, fchmod conditional for systems that don't have them. Jeremy. (This used to be commit cf78b1e7fe72aec72d03c86c46a8ca49df539c11) --- source3/web/swat.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/web/swat.c') diff --git a/source3/web/swat.c b/source3/web/swat.c index fa319bb3ae..7f9492933a 100644 --- a/source3/web/swat.c +++ b/source3/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); -- cgit