This file is indexed.

/usr/share/doc/libdbd-mysql-perl/examples/bug14979.pl is in libdbd-mysql-perl 4.020-1build2.

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
24
25
26
27
28
29
30
31
#! /usr/bin/perl -wT

use strict;
use DBI();

MAIN: {
	$ENV{'DBI_DSN'} ||= 'dbi:mysql:dbname=mysql:mysql_server_prepare=1';
	$ENV{'DBI_USER'} ||= 'root';
	$ENV{'DBI_PASS'} ||= '';
	my ($dbh) = DBI->connect($ENV{DBI_DSN}, $ENV{DBI_USER}, $ENV{DBI_PASS}, {RaiseError => 1, PrintError => 0, AutoCommit => 0});
        $dbh->trace(3,"bug14979.trace");
	my ($sql) = qq[SELECT * FROM mysql.user WHERE user LIKE ?];
	my ($sth) = $dbh->prepare($sql);
	$sth->execute('foo');
	$sth->finish();
	my ($pid);
	if ($pid = fork()) {
		waitpid($pid, 0);
		unless ($? == 0) {
			die("Child failed to execute successfully\n");
		}
	} elsif (defined $pid) {
		$dbh->{'InactiveDestroy'} = 1;
		exit(0);
	} else {
		die("Failed to fork:$!\n");
	}
	$sth->execute('foo');
	$sth->finish();
	$dbh->disconnect();
}