]> arthur.barton.de Git - netatalk.git/commitdiff
Ah, the joys of boolean logig
authorFrank Lahm <franklahm@googlemail.com>
Wed, 18 Apr 2012 13:06:05 +0000 (15:06 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Wed, 18 Apr 2012 13:06:05 +0000 (15:06 +0200)
libatalk/util/netatalk_conf.c

index f7909e8d1b830cde2c23bb13c0f6b11726bc3e9e..e58f9a5fe5e47b927876222d74d1cdbeec05e7fd 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", 0))
-        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))