openbsd-ports/net/samba/patches/patch-web_swat_c
2011-09-26 09:32:12 +00:00

17 lines
466 B
Plaintext

$OpenBSD: patch-web_swat_c,v 1.8 2011/09/26 09:32:12 sthen Exp $
--- web/swat.c.orig Tue Aug 9 13:17:47 2011
+++ web/swat.c Mon Sep 12 17:40:48 2011
@@ -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;
}