This file is indexed.

/usr/share/doc/libsnapper-dev/examples/Create.cc is in libsnapper-dev 0.4.1-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
#include <unistd.h>
#include <sys/types.h>
#include <stdlib.h>
#include <iostream>

#include <snapper/Snapper.h>

using namespace snapper;
using namespace std;

int
main(int argc, char** argv)
{
    Snapper* sh = new Snapper("root", "/");

    SCD scd;
    scd.uid = getuid();
    scd.description = "test";
    scd.cleanup = "number";

    sh->createSingleSnapshot(scd);

    delete sh;

    exit(EXIT_SUCCESS);
}