Re: [PATCH 1/3] scanner: add files in include dirs in alphabetical order.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7 June 2017 at 10:35, Ismo Puustinen <ismo.puustinen@xxxxxxxxx> wrote:
>
> +static int directoryfilter(const struct dirent *de)
> +{
> +       if (strcmp(de->d_name, ".") == 0 ||
> +                       strcmp(de->d_name, "..") == 0)
> +               return 0;
> +
> +       /* Accept other filenames. If we want to enable filtering based on
> +        * filename suffix (*.nft), this would be the place to do it.
> +        */
> +

This filter by suffix is good to have IMHO.
I guess that forcing users to explicitly create a file for nftables
(or at least give a specific suffix) reduces chances for user errors.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux