This file is indexed.

/usr/share/perl5/Prophet/Resolver/Prompt.pm is in libprophet-perl 0.750-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
package Prophet::Resolver::Prompt;
use Any::Moose;
extends 'Prophet::Resolver';

sub run {
    my $self               = shift;
    my $conflicting_change = shift;
    return 0 if $conflicting_change->file_op_conflict;

    my $resolution = Prophet::Change->new_from_conflict($conflicting_change);
    print "Oh no! There's a conflict between this replica and the one you're syncing from:\n";
    print $conflicting_change->record_type . " " . $conflicting_change->record_uuid . "\n";

    for my $prop_conflict ( @{ $conflicting_change->prop_conflicts } ) {

        print $prop_conflict->name . ": \n";

        my %values;
        for (qw/target_value source_old_value source_new_value/) {
            $values{$_} = $prop_conflict->$_;
            $values{$_} = "(undefined)"
                if !defined($values{$_});
        }


        print "(T)ARGET     $values{target_value}\n";
        print "SOURCE (O)LD $values{source_old_value}\n";
        print "SOURCE (N)EW $values{source_new_value}\n";

        while ( my $choice = lc( substr( <STDIN> || 'T', 0, 1 ) ) ) {

            if ( $choice eq 't' ) {

                $resolution->add_prop_change(
                    name => $prop_conflict->name,
                    old  => $prop_conflict->source_new_value,
                    new  => $prop_conflict->target_value
                );
                last;
            } elsif ( $choice eq 'o' ) {

                $resolution->add_prop_change(
                    name => $prop_conflict->name,
                    old  => $prop_conflict->source_new_value,
                    new  => $prop_conflict->source_old_value
                );
                last;

            } elsif ( $choice eq 'n' ) {
                last;

            } else {
                print "(T), (O) or (N)? ";
            }
        }
    }
    return $resolution;
}

__PACKAGE__->meta->make_immutable;
no Any::Moose;

1;