]> git.ipfire.org Git - thirdparty/nftables.git/commit
scanner: add files in include dirs in alphabetical order.
authorIsmo Puustinen <ismo.puustinen@intel.com>
Wed, 7 Jun 2017 08:35:57 +0000 (11:35 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 7 Jun 2017 11:30:34 +0000 (13:30 +0200)
commit3facbd92cb93fd584da5ca91083a9c30e5ee0396
treed9c4e58a52ddd3836e0777c78041b6d8fb0a8410
parent89e5a141b797b7df81f6ba9d9ea023f5fb6af978
scanner: add files in include dirs in alphabetical order.

This means that if you have a directory structure like this

    /foo
    /foo/02_rules.nft
    /foo/01_rules.nft

where *.nft files in directory /foo are nft scripts, then an include
statement in another nft script like this

    include "/foo/"

guarantees that "01_rules.nft" is loaded before "02_rules.nft".

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