This file is indexed.

/usr/share/bibledit-gtk/mergecli.php is in bibledit-gtk-data 4.9-1.

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
<?php
/*
Copyright (©) 2003-2013 Teus Benschop.

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, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/


/*

Note: This object should not call other objects within the Bibledit-Web source,
because this object is also called from Bibledit-Gtk, and does not have access
to those other objects.
Calling other objects would result in faral errors that break Bibledit-Gtk.

*/


// This calls Bibledit-Web's three-way merge filter from the command line.


// Security: The script runs from the cli SAPI only.
if (php_sapi_name () != "cli") {
  echo "Fatal: This only runs through the cli Server API\n";
  die;
}


if ($argc != 5) {
  echo "Three-way file merge with grapheme granularity.\n";
  echo "It needs the following four arguments:\n";
  echo "- Name of the file with the merge base\n";
  echo "- Name of the file with the user modifications\n";
  echo "- Name of the file with the server modifications\n";
  echo "- Name of the file to store the merged output\n";
  die;
}


$mergeBase = file_get_contents ($argv [1]);
$userModification  = file_get_contents ($argv [2]);
$serverModification = file_get_contents ($argv [3]);


include ("merge.php");
include ("rmdir.php");


$output = Filter_Merge::run ($mergeBase, $userModification, $serverModification);


file_put_contents ($argv [4], $output);


?>