summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-20 12:09:36 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-20 12:09:36 +0200
commitdadde7e8f065e1d5c339c7b5692bd1712d35820c (patch)
tree2a9610d4b9b0a5c818b781d89773b3e08af6cabd /selftest
parent8834b9c787dbffedfa8c0789080650b49599dd04 (diff)
downloadsamba-dadde7e8f065e1d5c339c7b5692bd1712d35820c.tar.gz
samba-dadde7e8f065e1d5c339c7b5692bd1712d35820c.tar.bz2
samba-dadde7e8f065e1d5c339c7b5692bd1712d35820c.zip
Make warning a bit more user-friendly.
Diffstat (limited to 'selftest')
-rwxr-xr-xselftest/selftest.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl
index 60eabe41d6..b1908d456c 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;