The Samba-Bugzilla – Attachment 916 Details for
Bug 2278
SWAT main page and missing documentation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use stat() to check if we have Samba documentation
swat-welcome.diff (text/plain), 645 bytes, created by
Lars Müller
on 2005-01-26 03:41:08 UTC
(
hide
)
Description:
Use stat() to check if we have Samba documentation
Filename:
MIME Type:
Creator:
Lars Müller
Created:
2005-01-26 03:41:08 UTC
Size:
645 bytes
patch
obsolete
>Author: Lars Mueller <lmuelle at SuSE dot de> >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"); > } > > /****************************************************************************
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2278
: 916 |
917
|
918