[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] bootchartd: prevent premature stop by device mapper
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2017-07-20 11:59:54
Message-ID: CAK1hOcPYW=7i6nfjso=XmaG2Qdb=912P7ejU+-jOxw-ic1e5vQ () mail ! gmail ! com
[Download RAW message or body]

Applied, thanks!

On Wed, Jul 19, 2017 at 9:08 PM, Uwe Geuder (Nomovok Ltd.)
<busybox2017-ugeuder@snkmail.com> wrote:
>
> kernel thread kdmflush was recognized as display manager kdm, check for string length
>
> Signed-off-by: Uwe Geuder (Nomovok Ltd.) <busybox2017-ugeuder@snkmail.com>
> ---
>  init/bootchartd.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/init/bootchartd.c b/init/bootchartd.c
> index 92aaade0f..0c52785d1 100644
> --- a/init/bootchartd.c
> +++ b/init/bootchartd.c
> @@ -171,7 +171,8 @@ static int dump_procs(FILE *fp, int look_for_login_process)
>                         p++;
>                         strchrnul(p, ')')[0] = '\0';
>                         /* Is it gdm, kdm or a getty? */
> -                       if (((p[0] == 'g' || p[0] == 'k' || p[0] == 'x') && p[1] == 'd' && p[2] == 'm')
> +                       if (((p[0] == 'g' || p[0] == 'k' || p[0] == 'x')
> +                                       && p[1] == 'd' && p[2] == 'm' && p[3] == '\0')
>                          || strstr(p, "getty")
>                         ) {
>                                 found_login_process = 1;
> --
> 2.12.3
>
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic