On 2023-03-24 6:44 a.m., Markus Fischer wrote: > I think I've figured it out. With the following patch I don't see the > unexpected behaviour anymore: > > --- a/src/killall5.c > +++ b/src/killall5.c > @@ -662,6 +662,7 @@ int readproc() > /* Try to stat the executable. */ > snprintf(path, sizeof(path), "/proc/%s/exe", d->d_name); > p->pathname = (char *)xmalloc(PATH_MAX); > + memset(p->pathname, 0, PATH_MAX); > if (readlink(path, p->pathname, PATH_MAX) == -1) { > p->pathname = NULL; > } > This patch looks good to me. I'm adding it upstream. Will run some more tests before publishing 3.07. And would appreciate it if everyone following this issue could test too and provide feedback. - Jesse
- Bug#1033311: sysvinit-utils: pidof not always returni... Jesse Smith
- Bug#1033311: sysvinit-utils: pidof not always ret... Markus Fischer
- Bug#1033311: sysvinit-utils: pidof not always... Jesse Smith
- Bug#1033311: sysvinit-utils: pidof not al... Markus Fischer
- Bug#1033311: sysvinit-utils: pidof n... Jesse Smith
- Bug#1033311: sysvinit-utils: pid... Markus Fischer
- Bug#1033311: sysvinit-utils: pid... Jesse Smith
- Bug#1033311: sysvinit-utils: pid... Markus Fischer
- Bug#1033311: sysvinit-utils: pid... Jesse Smith
- Bug#1033311: sysvinit-utils: pid... Markus Fischer
- Bug#1033311: sysvinit-utils: pid... Jesse Smith
- Bug#1033311: sysvinit-utils: pid... Markus Fischer
- Bug#1033311: sysvinit-utils: pid... Jesse Smith
- Bug#1033311: sysvinit-utils: pid... Matthew Vernon
- Bug#1033311: sysvinit-utils: pid... Mark Hindley
- Bug#1033311: sysvinit-utils: pid... Jesse Smith
- Bug#1033311: sysvinit-utils: pid... Thorsten Glaser
- Bug#1033311: sysvinit-utils: pidof not always returning a ... Markus Fischer
- Bug#1033311: sysvinit-utils: pidof not always returning a ... Mark Hindley
- Bug#1033311: several messages Thorsten Glaser
- Bug#1033311: sysvinit-utils: pidof not always returning a ... Matthew Vernon