This file is indexed.

/usr/share/racket/collects/compiler/find-exe.rkt is in racket-common 6.7-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
#lang racket/base
(require setup/dirs
         setup/variant
         setup/cross-system)
(provide find-exe)

(define (find-exe #:cross? [cross? #f]
                  #:untethered? [untethered? #f]
                  [mred? #f]
                  [variant (if cross?
                               (cross-system-type 'gc)
                               (system-type 'gc))])
  (let* ([base (if mred?
                   (or (and (not untethered?)
                            (find-addon-tethered-gui-bin-dir)
                            (find-config-tethered-gui-bin-dir))
                       (find-lib-dir))
                   (or (and (not untethered?)
                            (find-addon-tethered-console-bin-dir)
                            (find-config-tethered-console-bin-dir))
                       (find-console-bin-dir)))]
         [fail
          (lambda ()
            (error 'find-exe
                   "can't find ~a executable for variant ~a"
                   (if mred? "GRacket" "Racket")
                   variant))])
    (let ([exe (build-path
                base
                (case (if cross?
                          (cross-system-type)
                          (system-type))
                  [(macosx)
                   (cond
                     [(not mred?)
                      ;; Need Racket:
                      (string-append "racket" (variant-suffix variant #f))]
                     [mred?
                      ;; Need GRacket:
                      (let ([sfx (variant-suffix variant #t)])
                        (build-path (format "GRacket~a.app" sfx)
                                    "Contents" "MacOS"
                                    (format "GRacket~a" sfx)))])]
                  [(windows)
                   (format "~a~a.exe" (if mred?
                                          "GRacket"
                                          "Racket")
                           (variant-suffix variant #t))]
                  [(unix)
                   (format "~a~a" (if mred?
                                      "gracket"
                                      "racket")
                           (variant-suffix variant #f))]))])
      (unless (or (file-exists? exe)
                  (directory-exists? exe))
        (fail))
      exe)))