This file is indexed.

/usr/share/doc/libnet-sftp-foreign-perl/examples/capture_stderr.pl is in libnet-sftp-foreign-perl 1.69+dfsg-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/perl

use strict;
use warnings;

use Net::SFTP::Foreign;
use File::Temp;

my $hostname = shift // 'localhost';

my $ssherr = File::Temp->new or die "tempfile failed";

my $sftp = Net::SFTP::Foreign->new($hostname, more => qw(-v), stderr_fh => $ssherr);

if ($sftp->error) {
  print "sftp error: ".$sftp->error."\n";
  seek($ssherr, 0, 0);
  while (<$ssherr>) {
    print " ssh error: $_";
  }
}

close $ssherr;