]> err.no Git - systemd/commit
rules_generator: net rules - do not print error if file is missing and ignore comment...
authorMarco d'Itri <md@Linux.IT>
Mon, 7 Jul 2008 12:32:33 +0000 (14:32 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 7 Jul 2008 12:32:33 +0000 (14:32 +0200)
commit03effd3bc9967da27db865ccb6480a805701b09f
tree3248701dc72eb8cb0f3f0a734e605b0f3f75f3c5
parent9d2a06d7c6a1a818e42dd95f79b01f7e91a59098
rules_generator: net rules - do not print error if file is missing and ignore commented rules

Fix an error message displayed by write_net_rules when the rules file
does not exist yet. (See Debian bugs #442796 and #475699.)

Ignore commented rules, at least for the easy case.
For clarity, use extended instead of standard regular expressions.
extras/rule_generator/rule_generator.functions