summaryrefslogtreecommitdiffstats
path: root/source3/web
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>1998-11-11 01:54:31 +0000
committerHerb Lewis <herb@samba.org>1998-11-11 01:54:31 +0000
commitfadde4210715322bac081e3665a73181d80059ab (patch)
treeec83b7037f9803f4de0425e9ee9a268949ef9777 /source3/web
parentb94520e424bc6e348dcb380ff8285583bbb18a34 (diff)
downloadsamba-fadde4210715322bac081e3665a73181d80059ab.tar.gz
samba-fadde4210715322bac081e3665a73181d80059ab.tar.xz
samba-fadde4210715322bac081e3665a73181d80059ab.zip
swat.c updated to use new yodl generated smb.conf.5.html file for help
added smb.conf.5.html to swat/help (This used to be commit 9f250a80c66fb3e2b9039218771f0b4d5088a0ae)
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/swat.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c
index 7a2f081d26..58915660dc 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -50,13 +50,25 @@ static char *fix_backslash(char *str)
static char newstring[1024];
char *p = newstring;
- *p = '\0';
while (*str) {
if (*str == '\\') {*p++ = '\\';*p++ = '\\';}
else *p++ = *str;
++str;
- *p = '\0';
}
+ *p = '\0';
+ return newstring;
+}
+
+static char *stripspace(char *str)
+{
+static char newstring[1024];
+char *p = newstring;
+
+ while (*str) {
+ if (*str != ' ') *p++ = *str;
+ ++str;
+ }
+ *p = '\0';
return newstring;
}
@@ -69,8 +81,8 @@ char *p = parmname;
if (*label == ' ') *p++ = '_';
else *p++ = *label;
++label;
- *p = '\0';
}
+ *p = '\0';
return parmname;
}
@@ -132,8 +144,8 @@ static void show_parameter(int snum, struct parm_struct *parm)
ptr = lp_local_ptr(snum, ptr);
}
- printf("<tr><td><A HREF=\"/swat/help/parameters.html#%s\">?</A> %s</td><td>",
- parm->label, parm->label);
+ printf("<tr><td><A HREF=\"/swat/help/smb.conf.5.html#%s\">?</A> %s</td><td>",
+ stripspace(parm->label), parm->label);
switch (parm->type) {
case P_CHAR: