openbsd-ports/net/samba/patches/patch-web_swat_c
mbalmer 632b69bf84 Update to Samba 3.0.20b.
Note for LDAP users:  The 'ldap filter' statement in smb.conf is no
longer available.
2005-10-13 21:00:38 +00:00

17 lines
466 B
Plaintext

$OpenBSD: patch-web_swat_c,v 1.2 2005/10/13 21:00:38 mbalmer Exp $
--- web/swat.c.orig Thu Sep 29 23:52:45 2005
+++ web/swat.c Tue Oct 4 09:16:29 2005
@@ -136,8 +136,10 @@ static int include_html(const char *fnam
fd = web_open(fname, O_RDONLY, 0);
if (fd == -1) {
- printf(_("ERROR: Can't open %s"), fname);
- printf("\n");
+ if (strcmp(fname, "help/welcome.html")) {
+ printf(_("ERROR: Can't open %s"), fname);
+ printf("\n");
+ }
return 0;
}