1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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 9f250a80c6)
This commit is contained in:
Herb Lewis 1998-11-11 01:54:31 +00:00
parent b94520e424
commit fadde42107
2 changed files with 4468 additions and 5 deletions

View File

@ -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:

4451
swat/help/smb.conf.5.html Normal file

File diff suppressed because it is too large Load Diff