debian: Fix permission change in case of local diversions

/usr/bin/dumpcap may be locally diverted to somewhere else, so let's
query dpkg-divert for the current location.

Change-Id: I4347d390b2c1e94383308d274b113a23bec62f5b
Reviewed-on: https://code.wireshark.org/review/34040
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Topi Miettinen 2019-07-20 11:46:51 +03:00 committed by Anders Broman
parent 01aa9bf48e
commit 4d41836db4
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
set -e
. /usr/share/debconf/confmodule
PROGRAM=/usr/bin/dumpcap
PROGRAM=$(dpkg-divert --truename /usr/bin/dumpcap)
GROUP=wireshark
if ! dpkg-statoverride --list $PROGRAM > /dev/null; then