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

_______________________________________________
Mailing list: https://launchpad.net/~hipl-core
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~hipl-core
More help   : https://help.launchpad.net/ListHelp

Reply via email to