openbsd-ports/net/nfsen/patches/patch-libexec_NfProfile_pm
sthen 04f4a4a66e Patch a problem with nfsen's install.pl that was introduced in the 1.3.7
update reported by mlnospam at yahoo.com

Garbage-collect pkg/MESSAGE while there. Most of the contents are already
in pkg/README and I've merged the other bit.
2016-04-11 08:51:28 +00:00

13 lines
555 B
Plaintext

$OpenBSD: patch-libexec_NfProfile_pm,v 1.1 2016/04/11 08:51:28 sthen Exp $
--- libexec/NfProfile.pm.orig Mon Apr 11 09:24:34 2016
+++ libexec/NfProfile.pm Mon Apr 11 09:26:04 2016
@@ -1343,7 +1343,7 @@ sub DoRebuild {
$completed = 100;
}
if ( ($counter % $modulo ) == 0 ) {
- print $socket ".info Rebuilding Profile '$profile': Completed: $completed\%\n";
+ print $socket ".info Rebuilding Profile '$profile': Completed: $completed\%\n" if $socket;
syslog('info', "Rebuilding Profile '$profile': Completed: $completed\%");
}