summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-05-14 04:40:23 +0000
committerAndrew Tridgell <tridge@samba.org>1998-05-14 04:40:23 +0000
commitfabf5ea72dbd46c4050faaaf345ee99a98cc374e (patch)
treed4199d93430897c73e66b57f92e7cf0c63181052
parent09e13ae2dc74f82c46129d943e20c5a591449285 (diff)
downloadrsync-fabf5ea72dbd46c4050faaaf345ee99a98cc374e.tar.gz
rsync-fabf5ea72dbd46c4050faaaf345ee99a98cc374e.tar.bz2
rsync-fabf5ea72dbd46c4050faaaf345ee99a98cc374e.zip
now support integers or strings for syslog facility
-rw-r--r--loadparm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/loadparm.c b/loadparm.c
index f8ec868a..f152e261 100644
--- a/loadparm.c
+++ b/loadparm.c
@@ -584,6 +584,9 @@ static BOOL lp_do_parameter(int snum, char *parmname, char *parmvalue)
break;
}
}
+ if (!parm_table[parmnum].enum_list[i].name) {
+ *(int *)parm_ptr = atoi(parmvalue);
+ }
break;
case P_SEP:
break;