]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Fix a typo.
authormmj <none@none>
Mon, 21 Jun 2004 10:48:12 +0000 (20:48 +1000)
committermmj <none@none>
Mon, 21 Jun 2004 10:48:12 +0000 (20:48 +1000)
If there's only allow/deny on a line, we need a regexp to catch everything.

src/mlmmj-process.c

index c056353d3ca677251a030a27734909ca107c4650..fa47bcc9f15733c000a108bf655640b774f93969 100644 (file)
@@ -233,8 +233,11 @@ static enum action do_access(struct strlist *rule_strs, struct strlist *hdrs)
                }
 
                if (*rule_ptr == ' ') {
-                       *rule_ptr++;
-               } else if (*rule_ptr) {
+                       rule_ptr++;
+               } else if (*rule_ptr == '\0') {
+                       rule_ptr--;
+                       *rule_ptr = '.';
+               } else {
                        /* we must have space or end of string */
                        errno = 0;
                        log_error(LOG_ARGS, "Unable to parse rule #%d!"