]> git.ipfire.org Git - people/ms/dma.git/commit
use basename to select executable identity
authorMask66 <mask@mask.ms>
Fri, 10 Feb 2017 17:36:29 +0000 (18:36 +0100)
committerSimon Schubert <2@0x2c.org>
Fri, 10 Feb 2017 17:36:29 +0000 (18:36 +0100)
commit1cc2afab4c909e07cef2d57720b84e7534c13ad9
treec5b0922ee78d3fb3071994a146d91cc8009d1e77
parent6748bdd435e6287cb36ea278fec2a1f7281be6bf
use basename to select executable identity

We ran into problems calling dma (on FreeBSD) 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.

Also reported as https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216910.
dma.c