aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcrux.pl12
1 files changed, 2 insertions, 10 deletions
diff --git a/crux.pl b/crux.pl
index 50d72c6..487b8e7 100755
--- a/crux.pl
+++ b/crux.pl
@@ -20,18 +20,10 @@ require OpenBSD::Unveil
if is_OpenBSD;
sub unveil {
if (is_OpenBSD) {
- if ( $options{debug} ) {
- # Check if defined because unveil can also be called blank
- # to block it.
- if ( defined($_[0]) and defined($_[1]) ) {
- say LOCALCOLOR GREEN "Unveil :: $_[0] :: $_[1]";
- } else {
- say LOCALCOLOR GREEN "Unveil :: Block";
- }
- }
+ say LOCALCOLOR GREEN "Unveil :: @_" if $options{debug};
return OpenBSD::Unveil::unveil(@_);
} else {
- warn "Calling dummy unveil...\n" if $options{debug};
+ warn "Dummy unveil :: @_\n" if $options{debug};
return 1;
}
}