This file is indexed.

/usr/lib/cmake/leatherman/curl.cmake is in libleatherman-dev 1.4.0+dfsg-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
find_package(Boost 1.54 REQUIRED COMPONENTS regex system filesystem)

add_leatherman_deps("${Boost_LIBRARIES}")
add_leatherman_includes("${Boost_INCLUDE_DIRS}")

if (BUILDING_LEATHERMAN AND LEATHERMAN_MOCK_CURL)
    # Create a mock curl library; it needs to be separate to allow for dllimport in the client source
    # Do it first to avoid symbol_exports defined later.
    add_subdirectory(tests)
    export_var(LEATHERMAN_INT_CURL_LIBS)
    export_var(LEATHERMAN_TEST_CURL_LIB)
endif()

find_package(CURL REQUIRED)

if (CURL_STATIC)
    add_definitions(-DCURL_STATICLIB)
    if (WIN32)
        # Linking statically on Windows requires some extra libraries.
        set(CURL_DEPS wldap32.lib ws2_32.lib)
    endif()
endif()

add_leatherman_includes("${CURL_INCLUDE_DIRS}")

leatherman_dependency(locale)
leatherman_dependency(logging)
leatherman_dependency(util)
leatherman_dependency(file_util)
add_leatherman_deps(${CURL_LIBRARIES} ${CURL_DEPS})

if (BUILDING_LEATHERMAN)
    leatherman_logging_namespace("leatherman.curl")
    leatherman_logging_line_numbers()
endif()

add_leatherman_library(src/client.cc src/request.cc src/response.cc EXPORTS "${CMAKE_CURRENT_LIST_DIR}/inc/leatherman/curl/export.h")
add_leatherman_headers(inc/leatherman)

if (BUILDING_LEATHERMAN AND LEATHERMAN_MOCK_CURL)
    add_leatherman_test(tests/client_test.cc tests/request_test.cc tests/response_test.cc)
endif()