]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/iniparser/iniparser.c
afpd: check for modified included config file, FR #95
[netatalk.git] / libatalk / iniparser / iniparser.c
index 53f6a108382513b51495251dec09fa8e2e14dcf4..343a6d063b5cbd5028934f05e5b63c9f7f567d9c 100644 (file)
@@ -598,6 +598,10 @@ dictionary * atalk_iniparser_load(const char * ininame)
             break ;
         case LINE_VALUE:
             if (strcmp(key, "include") == 0) {
+                errs = atalkdict_set(dict, section, key, val);
+                if (errs < 0) {
+                    LOG(log_error, logtype_default, "iniparser: memory allocation failure");
+                }
                 if ((include = fopen(val, "r")) == NULL) {
                     LOG(log_error, logtype_default, "iniparser: cannot open \"%s\"", val);
                     continue;