Created attachment 179749 [details] patches dma.c We ran into problems calling dma from the nagios check_mailq script, and found out that it behaves correctly when called as just "mailq", but incorrectly when called as "/usr/bin/mailq" (with a path) for example. This patch written by my colleague Klaus-Uwe Ittner corrects this.
Just for the record, also reported this upstream: https://github.com/corecode/dma/issues/51
Just a heads up, my pull request was approved and merged upstream: https://github.com/corecode/dma/pull/52
Thank you for the submission and for pushing it upstream.
I'll update dma from upstream asap, thanks for your contribution
A commit references this bug: Author: bapt Date: Wed Mar 1 21:35:25 UTC 2017 New revision: 314518 URL: https://svnweb.freebsd.org/changeset/base/314518 Log: Import dma snapshot from git 2017-02-10 The only change is: use basename to select executable identity PR: 216910 Submitted by: Andrej Ebert <andrej@ebert.su> Changes: vendor/dma/dist/dma.c
A commit references this bug: Author: bapt Date: Wed Mar 1 21:42:23 UTC 2017 New revision: 314520 URL: https://svnweb.freebsd.org/changeset/base/314520 Log: Import dma snapshot from git 2017-02-10 The only change is: use basename to select executable identity PR: 216910 Submitted by: Andrej Ebert <andrej@ebert.su> Changes: _U head/contrib/dma/ head/contrib/dma/dma.c
Thanks for the contribution, I'll MFC in a couple of days
Just a ping to remind Baptiste to MFC :)
A commit references this bug: Author: bapt Date: Sun Mar 26 18:06:22 UTC 2017 New revision: 315995 URL: https://svnweb.freebsd.org/changeset/base/315995 Log: MFC r314520: Import dma snapshot from git 2017-02-10 The only change is: use basename to select executable identity PR: 216910 Submitted by: Andrej Ebert <andrej@ebert.su> Changes: _U stable/11/ stable/11/contrib/dma/dma.c