diff options
author | Gerald Carter <jerry@samba.org> | 2003-11-22 04:35:36 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-11-22 04:35:36 +0000 |
commit | 3c101594ddb9b8be9378ddd00c175a1fcf04a577 (patch) | |
tree | 944f8060db8b491802dc312236a83e0a54e2eeca /source3/lib/util_str.c | |
parent | 1a125f5e402ad433a7192d9c5f5cfbb9593710b0 (diff) | |
download | samba-3c101594ddb9b8be9378ddd00c175a1fcf04a577.tar.gz samba-3c101594ddb9b8be9378ddd00c175a1fcf04a577.tar.bz2 samba-3c101594ddb9b8be9378ddd00c175a1fcf04a577.zip |
Ensure that items in a list of strings containing whitespace
are written out surrounded by single quotes. This means that
both double and single quotes are now used to surround
strings in smb.conf. This is a slight change from the previous
behavior but needed or else things like
printer admin = +ntadmin, 'VALE\Domain, Admin'
get written to smb.conf by SWAT.
(This used to be commit 59e9d6e301c752e99fb6a50204d7941f7f84566a)
Diffstat (limited to 'source3/lib/util_str.c')
-rw-r--r-- | source3/lib/util_str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index aa50b07f61..1aa33a1a4b 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -62,7 +62,7 @@ BOOL next_token(const char **ptr,char *buff, const char *sep, size_t bufsize) /* copy over the token */ pbuf = buff; for (quoted = False; len < bufsize && *s && (quoted || !strchr_m(sep,*s)); s++) { - if (*s == '\"') { + if (*s == '\"' || *s == '\'') { quoted = !quoted; } else { len++; |