]> arthur.barton.de Git - netatalk.git/commitdiff
Fix default boolean values of global options
authorHAT <hat@fa2.so-net.ne.jp>
Wed, 18 Apr 2012 11:54:41 +0000 (20:54 +0900)
committerHAT <hat@fa2.so-net.ne.jp>
Wed, 18 Apr 2012 11:54:41 +0000 (20:54 +0900)
libatalk/util/netatalk_conf.c

index a3cd87e7a551b77919ade214054720473eb56df4..4e45737ffb0aa7decec178616056e585d9a68918 100644 (file)
@@ -1430,14 +1430,14 @@ int afp_config_parse(AFPObj *AFPObj, char *processname)
         options->flags |= OPTION_CUSTOMICON;
     if (iniparser_getboolean(config, INISEC_GLOBAL, "advertise ssh", 0))
         options->flags |= OPTION_ANNOUNCESSH;
-    if (iniparser_getboolean(config, INISEC_GLOBAL, "map acls", 1))
-        options->flags |= OPTION_ACL2MACCESS;
+    if (!iniparser_getboolean(config, INISEC_GLOBAL, "map acls", 1))
+        options->flags &= ~OPTION_ACL2MACCESS;
     if (iniparser_getboolean(config, INISEC_GLOBAL, "keep sessions", 0))
         options->flags |= OPTION_KEEPSESSIONS;
     if (iniparser_getboolean(config, INISEC_GLOBAL, "close vol", 0))
         options->flags |= OPTION_CLOSEVOL;
-    if (!iniparser_getboolean(config, INISEC_GLOBAL, "client polling", 1))
-        options->flags |= OPTION_SERVERNOTIF;
+    if (iniparser_getboolean(config, INISEC_GLOBAL, "client polling", 0))
+        options->flags &= ~OPTION_SERVERNOTIF;
     if (!iniparser_getboolean(config, INISEC_GLOBAL, "use sendfile", 1))
         options->flags |= OPTION_NOSENDFILE;
     if (!iniparser_getboolean(config, INISEC_GLOBAL, "save password", 1))