]> git.ipfire.org Git - thirdparty/nftables.git/commit
scanner: support for wildcards in include statements.
authorIsmo Puustinen <ismo.puustinen@intel.com>
Tue, 27 Jun 2017 12:14:58 +0000 (15:14 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 27 Jun 2017 16:08:51 +0000 (18:08 +0200)
commit8368e63eff044b78b9332f3af398a940d75e590f
tree4e690b118dbcdfea85c6c628f21e2ea8124cd8eb
parent1325419d43184ffe426878af2a2f050e28702852
scanner: support for wildcards in include statements.

Use glob() to find paths in include statements. The rules are these:

  1. If no files can be found in the pattern with wildcards, do not
     return an error.
  2. Do not match any files beginning with '.'.
  3. Do not handle include directories anymore. For example, the
     statement:
       include "foo/"
     would now need to be rewritten:
       include "foo/*"

Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/scanner.l