From c9ca5e242da4c38f5baab3c707121f97c8382047 Mon Sep 17 00:00:00 2001 From: Andinus Date: Wed, 17 Jun 2020 21:27:06 +0530 Subject: Improve unveil debug message --- crux.pl | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'crux.pl') 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; } } -- cgit 1.4.1-2-gfad0