Opened merge request.
Fix uninitialized value error in scripts/services/exim
fix https://sourceforge.net/p/logwatch/bugs/99/
Got it (the solution was just a few lines below): Put in front $SelfSignedH and print (...) to create the scalar (probably)... Edit: attached git diff-based patch.
Got it (the solution was just a few lines below): Put in front $SelfSignedH and print (...) to create the scalar (probably)...
Ah sorry, what I wrote in my last post is probably incorrect (the result just looked good :D): $# apparently DOES NOT get the length but the last element. I will keep looking.
The patch did not help, just created another error: Name "main::SelfSignedH" used only once: possible typo at /usr/share/logwatch/scripts/services/exim line 333. I might have found a fix though (and an explanation, although I am not at all a perl expert...): It works if you use $#SelfSignedH instead of $SelfSignedH inside the print statement. If I understand correctly, you have to either assign the array to a scalar or explicitly use the scalar keyword in order to get the length of it (or$#). Initialization...
The patch did not help, just created another error: Name "main::SelfSignedH" used only once: possible typo at /usr/share/logwatch/scripts/services/exim line 333. I might have found a fix though (and an explanation, although I am not at all a perl expert...): It works if you use $#SelfSignedH instead of $SelfSignedH inside the print statement. If I understand correctly, you have to either assign the array to a scalar or explicitly use the scalar keyword in order to get the length of it (or$#). I can...