openbsd-ports/net/samba/patches/patch-web_swat_c
ajacoutot 84abc278d0 - don't use hardcoded paths in swat man page
- regen patches while here

"if it works for you" mbalmer@
2007-04-06 14:20:35 +00:00

17 lines
470 B
Plaintext

$OpenBSD: patch-web_swat_c,v 1.5 2007/04/06 14:20:35 ajacoutot Exp $
--- web/swat.c.orig Sun Feb 4 19:59:21 2007
+++ web/swat.c Fri Apr 6 14:46:58 2007
@@ -136,8 +136,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;
}