Author: Lars Mueller Subject: SWAT main page and documentation Bugzilla: #48160, bugzilla.Samba.org #2278 --- samba-3.0.10/source/web/swat.c +++ samba-3.0.10/source/web/swat.c 2005-01-26 11:30:13 @@ -546,7 +546,12 @@ ****************************************************************************/ static void welcome_page(void) { - include_html("help/welcome.html"); + struct stat buffer; + + if (stat("help/welcome.html", &buffer) == 0) + include_html("help/welcome.html"); + else + include_html("help/welcome-no-samba-doc.html"); } /****************************************************************************