openbsd-ports/net/samba/patches/patch-source3_web_swat_c
2012-04-10 22:01:20 +00:00

17 lines
490 B
Plaintext

$OpenBSD: patch-source3_web_swat_c,v 1.1 2012/04/10 22:01:20 sthen Exp $
--- source3/web/swat.c.orig Sat Apr 7 14:23:20 2012
+++ source3/web/swat.c Tue Apr 10 22:56:36 2012
@@ -243,8 +243,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;
}