disable EOL check for non-strict mode
authorFelix Fietkau <nbd@openwrt.org>
Sun, 3 Feb 2008 00:19:26 +0000 (01:19 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 3 Feb 2008 00:19:26 +0000 (01:19 +0100)
file.c

diff --git a/file.c b/file.c
index 6cc2eae30cf06c6eda5a41750ae9233a58c5085b..a3d08d2679ffe369675b0ec3a288dd4088c051b8 100644 (file)
--- a/file.c
+++ b/file.c
@@ -268,7 +268,7 @@ static void assert_eol(struct uci_context *ctx, char **str)
        char *tmp;
 
        tmp = next_arg(ctx, str, false, false);
        char *tmp;
 
        tmp = next_arg(ctx, str, false, false);
-       if (tmp && *tmp)
+       if (tmp && *tmp && (ctx->flags & UCI_FLAG_STRICT))
                uci_parse_error(ctx, *str, "too many arguments");
 }
 
                uci_parse_error(ctx, *str, "too many arguments");
 }