From: Jelmer Vernooij Date: Mon, 20 Oct 2008 10:09:36 +0000 (+0200) Subject: Make warning a bit more user-friendly. X-Git-Tag: samba-4.0.0alpha6~769^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dadde7e8f065e1d5c339c7b5692bd1712d35820c;p=thirdparty%2Fsamba.git Make warning a bit more user-friendly. --- diff --git a/selftest/selftest.pl b/selftest/selftest.pl index 60eabe41d66..b1908d456cb 100755 --- a/selftest/selftest.pl +++ b/selftest/selftest.pl @@ -434,7 +434,9 @@ if ($opt_socket_wrapper) { $socket_wrapper_dir = SocketWrapper::setup_dir("$prefix/w", $opt_socket_wrapper_pcap); print "SOCKET_WRAPPER_DIR=$socket_wrapper_dir\n"; } else { - warn("Not using socket wrapper, but also not running as root. Will not be able to listen on proper ports") unless $< == 0; + unless ($< == 0) { + print "WARNING: Not using socket wrapper, but also not running as root. Will not be able to listen on proper ports\n"; + } } my $target;