This file is indexed.

/usr/src/linux-source-3.13.0/debian/scripts/misc/insert-ubuntu-changes is in linux-source-3.13.0 3.13.0-156.206.

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

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/usr/bin/perl

if ($#ARGV != 2) {
	die "Usage: $0 <changelog> <stop at> <start at>\n";
}
my ($changelog, $end, $start) = @ARGV;

$end =~ s/^\D+//;
$start =~ s/^\D+//;

sub version_cmp($$) {
	my @a = split(/[\.-]+/, $_[0]);
	my @b = split(/[\.-]+/, $_[1]);
	for (my $i = 1;; $i++) {
		if (!defined $a[$i]) {
			if (!defined $b[$i]) {
				return 0;
			}
			return -1;
		}
		if (!defined $b[$i]) {
			return 1;
		}
		if ($a[$i] < $b[$i]) {
			return -1;
		}
		if ($a[$i] > $b[$i]) {
			return 1;
		}
	}
}

my @changes = ();
my $output = 0;
open(CHG, "<debian.master/changelog") ||
	open(CHG, "<debian/changelog") ||
	die "$0: debian/changelog: open failed - $!\n";
while (<CHG>) {
	if (/^\S+\s+\((.*)\)/) {
		if (version_cmp($1, $end) <= 0) {
			last;
		}
		if ($1 eq $start) {
			$output = 1;
		}
		if ($output) {
			push(@changes, "\n  [ Ubuntu: $1 ]\n\n");
			next;
		}
	}
	next if ($output == 0);

	next if (/^\s*$/);
	next if (/^\s--/);
	next if (/^\s\s[^\*\s]/);

	push(@changes, $_);
}
close(CHG);

open(CHANGELOG, "< $changelog") or die "Cannot open changelog";
open(NEW, "> $changelog.new") or die "Cannot open new changelog";

$printed = 3;
while (<CHANGELOG>) {
	if (/^  CHANGELOG: /) {
		$printed--;
		print NEW;
		if ($printed == 0) {
			print NEW @changes;
		}
		next;
	}
	print NEW;
}

close(NEW);
close(CHANGELOG);

rename("$changelog.new", "$changelog");