File: 04_fix-ARGV0

package info (click to toggle)
nagzilla 2.0-1.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 504 kB
  • sloc: perl: 272; sh: 191; makefile: 17
file content (16 lines) | stat: -rw-r--r-- 617 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Author: Gerfried Fuchs <rhonda@debian.at>	vim:ft=diff:
Description: Fix ARGV[0] to not contain the interpreter

Index: nagzilla-1.5.5-1/nagzillad.pl
===================================================================
--- nagzilla-1.5.5-1.orig/nagzillad.pl
+++ nagzilla-1.5.5-1/nagzillad.pl
@@ -21,6 +21,8 @@ $CONFDIR = "/etc/nagzillad";
 
 # DO NOT EDIT ANYTHING BEYOND THIS POINT!!
 
+$0.=''; # so that the init script is able to detect the process
+
 ##############Config File Setup#####################
 Config::Simple->import_from('nagzillad.cfg', \%Config);
 $cfg = new Config::Simple("$CONFDIR/nagzillad.cfg");