49ee02f207
tweaks/testing from me and nigel@
17 lines
466 B
Plaintext
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;
|
|
}
|
|
|