author | Holger Weiss <holger@zedat.fu-berlin.de> | |
Mon, 12 Apr 2010 13:36:33 +0000 (15:36 +0200) | ||
committer | Holger Weiss <holger@zedat.fu-berlin.de> | |
Mon, 12 Apr 2010 13:36:33 +0000 (15:36 +0200) | ||
commit | 7a661c7aed2a0bad4ce1e3786bc707cd2b07c128 | |
tree | a61b0d7d8c42f6710c4e95dd61da7dd7a82b5e7c | tree | snapshot |
parent | 08f83072048f2c4c783c3216f5933f04b191847f | commit | diff |
Fix Debian bug #545940: Failure when run via ePN
If Perl's "shift" function is called outside of a subroutine and without
any argument, it usually shifts @ARGV. However, if a plugin is executed
via ePN, such a call will shift @_ instead, so we must explicitly
specify @ARGV for this to work as expected.
This fixes Debian bug #545940, see: http://bugs.debian.org/545940
Commit de7191e3424e02ba278a39b86e8b1906a25d0362 fixed the same issue for
check_disk_smb.
(Reported by Hendrik Jaeger, forwarded by Jan Wagner.)
If Perl's "shift" function is called outside of a subroutine and without
any argument, it usually shifts @ARGV. However, if a plugin is executed
via ePN, such a call will shift @_ instead, so we must explicitly
specify @ARGV for this to work as expected.
This fixes Debian bug #545940, see: http://bugs.debian.org/545940
Commit de7191e3424e02ba278a39b86e8b1906a25d0362 fixed the same issue for
check_disk_smb.
(Reported by Hendrik Jaeger, forwarded by Jan Wagner.)
NEWS | diff | blob | history | |
plugins-scripts/check_ircd.pl | diff | blob | history |