hipl-core team mailing list archive
-
hipl-core team
-
Mailing list archive
-
Message #00129
Re: Patch: Allow empty lines in hipfw config. Clean up config reader.
On Mon, Aug 30, 2010 at 02:52:43PM +0200, Christof Mroz wrote:
> This was marked as TODO... I've attached the resulting code for
> reference.
>
> --- firewall/rule_management.c 2010-07-16 18:00:53 +0000
> +++ firewall/rule_management.c 2010-08-30 12:30:07 +0000
> @@ -934,31 +883,38 @@
>
> + /* terminate the line at comment sign */
> + found = index(line, '#');
> + if (found) {
> + *found = '\0';
> + }
> +
> + /* remove trailing new line (there is at most one) */
> + found = index(line, '\n');
> + if (found) {
> + *found = '\0';
> + }
This looks like it can be merged.
Diego
Follow ups
References