inncheck warning

Remco Rijnders remco at
Fri Jun 21 17:20:16 UTC 2013

Hi all,

Running inncheck today, I got the following warning:

[root at ketelbinkie inn]# inncheck
defined(@array) is deprecated at /usr/bin/inncheck line 1033.
  (Maybe you should just omit the defined()?)

This is with perl 5.18.

The attached patch will hopefully make this warning go away. Please note 
that I have only tested it in as far as that it makes the warning go away.

-------------- next part --------------
Index: scripts/
--- scripts/	(revision 9489)
+++ scripts/	(working copy)
@@ -1030,7 +1030,7 @@
     die "Internal error, undefined name in perm from ", (caller(0))[2], "\n"
 	if !defined $f;
     die "Internal error, undefined mode in perm from ", (caller(0))[2], "\n"
-	if !defined @$m;
+	if !@$m;
     if ( ! -e $f ) {
 	eprint "$pfx$f:0: missing\n";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <>

More information about the inn-workers mailing list