openbsd-ports/net/samba/patches/patch-web_swat_c
sthen 77128a8fa6 update Samba to 3.5.2, most of the work done by Ian McWilliam
Note that the default passdb backend has been changed to 'tdbsam'.
See /usr/local/share/doc/samba/README.OpenBSD (or files/README.OpenBSD)
for more information and instructions for people who wish to convert an
existing smbpasswd-based installation.
2010-04-26 17:31:57 +00:00

17 lines
466 B
Plaintext

$OpenBSD: patch-web_swat_c,v 1.6 2010/04/26 17:31:57 sthen Exp $
--- web/swat.c.orig Tue Apr 28 16:46:16 2009
+++ web/swat.c Wed Jun 3 21:13:32 2009
@@ -150,8 +150,10 @@ static int include_html(const char *fname)
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;
}