r1087: BUG 1221: revert old change that used single and double quotes as delimters...
authorGerald Carter <jerry@samba.org>
Tue, 8 Jun 2004 20:10:26 +0000 (20:10 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:51:54 +0000 (10:51 -0500)
source/lib/util_str.c
source/param/loadparm.c

index 65ef306ed1799713aefb94e73bca386077809b32..7c5fa11c92d6453e203354b1c6d9ea03aa65fbde 100644 (file)
@@ -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 == '\"' || *s == '\'') {
+               if ( *s == '\"' ) {
                        quoted = !quoted;
                } else {
                        len++;
index 4ac2f8950ff4cb2bc24a1245a9055b8337b429b9..2c65ac67d9686095e6d017397edd928c66f922a4 100644 (file)
@@ -3273,9 +3273,9 @@ static void print_parameter(struct parm_struct *p, void *ptr, FILE * f)
                                char **list = *(char ***)ptr;
                                
                                for (; *list; list++) {
-                                       /* surround strings with whitespace in single quotes */
+                                       /* surround strings with whitespace in double quotes */
                                        if ( strchr_m( *list, ' ' ) )
-                                               fprintf(f, "\'%s\'%s", *list, ((*(list+1))?", ":""));
+                                               fprintf(f, "\"%s\"%s", *list, ((*(list+1))?", ":""));
                                        else
                                                fprintf(f, "%s%s", *list, ((*(list+1))?", ":""));
                                }