]> arthur.barton.de Git - netatalk.git/commitdiff
Remove dequoting of double quotes in the iniparser, conflicts with strtok_quote()
authorRalph Boehme <sloowfranklin@gmail.com>
Tue, 11 Dec 2012 14:58:17 +0000 (15:58 +0100)
committerRalph Boehme <sloowfranklin@gmail.com>
Tue, 11 Dec 2012 14:58:17 +0000 (15:58 +0100)
libatalk/iniparser/iniparser.c

index 6e89472b34be54aff750f48a3c53b073fedd04b4..5c741d25dfc9314e70b8dd2aab78531e9a316af7 100644 (file)
@@ -8,6 +8,10 @@
 */
 
 /*---------------------------- Includes ------------------------------------*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <ctype.h>
 
 #include <atalk/iniparser.h>
@@ -474,8 +478,7 @@ static line_status iniparser_line(
         strcpy(section, strstrip(section));
         strcpy(section, section);
         sta = LINE_SECTION ;
-    } else if (sscanf (line, "%[^=] = \"%[^\"]\"", key, value) == 2
-           ||  sscanf (line, "%[^=] = '%[^\']'",   key, value) == 2
+    } else if (sscanf (line, "%[^=] = '%[^\']'",   key, value) == 2
            ||  sscanf (line, "%[^=] = %[^;#]",     key, value) == 2) {
         /* Usual key=value, with or without comments */
         strcpy(key, strstrip(key));