This file is indexed.

/usr/share/aegis/en/html/cp_command.rpt is in aegis-web 4.24.3-3.

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
/*
 *	aegis - project change supervisor
 *	Copyright (C) 2001, 2006-2008 Peter Miller
 *
 *	This program is free software; you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation; either version 3 of the License, or
 *	(at your option) any later version.
 *
 *	This program is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *
 *	You should have received a copy of the GNU General Public License
 *	along with this program. If not, see
 *	<http://www.gnu.org/licenses/>.
 */
auto src, dst;
src = arg[0];
dst = arg[1];

auto ps;
ps = project[project_name()].state;

auto cs;
cs = ps.branch.change[change_number()];

/* one column 1000 chars wide */
columns(1000);

if (cs.state == completed)
{
	/*
	 * The the change has been completed, extact the historical
	 * version from history.
	 */
	print("$bindir/aegis -cp -ind -p " ## project_name() ## " -delta " ##
		cs.delta_number ## " " ## src ## " -o " ## dst);
}
else if (cs.state == awaiting_development)
{
	/*
	 * If the change hasn't happened yet, extract the baseline version.
	 */
	print("$bindir/aegis -cp -ind -p " ## project_name() ## " " ##
		src ## " -o " ## dst);
}
else
{
	/*
	 * If the change is being actively developed, copy directly from
	 * the development directory.
	 */
	auto f, found;
	found = false;
	for (f in cs.src)
	{
		if (f.file_name == src)
			found = true;
	}
	if (found)
	{
		print("cp " ## cs.development_directory ## "/" ## src ##
			" " ## dst);
	}
	else
	{
		print("$bindir/aegis -cp -ind -p " ## project_name() ## " " ##
			src ## " -o " ## dst);
	}
}