[PATCH 8/8] mdev: remember line number in rule

Lauri Kasanen cand at gmx.com
Tue Dec 17 08:08:37 UTC 2019


On Mon, 16 Dec 2019 22:56:56 +0100
Jan Klötzke <jan at kloetzke.net> wrote:

> --- a/util-linux/mdev.c
> +++ b/util-linux/mdev.c
> @@ -299,6 +299,7 @@ struct rule {
>  	IF_FEATURE_MDEV_EXEC(char *r_cmd;)
>  	regex_t match;
>  	struct envmatch *envmatch;
> +	int lineno;
>  };

int16_t? Surely mdev.conf cannot be larger than 32767 lines.

- Lauri


More information about the busybox mailing list