Before, ci/test-11-unpriv.pl used Perl's "system" function
to execute a Unix command line to copy a file and change the
permissions of the copy.
Now, the Perl functions "copy" (from File::Copy) and "chmod"
are used instead.
#!/usr/bin/perl -w
use English;
+use File::Copy;
use File::Temp qw/ tempdir /;
use Test::Command;
use Test::More;
my $tmpdir = tempdir(CLEANUP => 1);
my $fping_bin = `which fping`; chomp $fping_bin;
my $fping_copy = "$tmpdir/fping.copy";
-system("cp $fping_bin $fping_copy; chmod +x $fping_copy");
+copy($fping_bin, $fping_copy);
+chmod 0755, $fping_copy;
# Determine what test to run, based on whether unprivileged
# pings are allowed.