This file is indexed.

/usr/bin/csp_scp_keep_mode is in caspar 20140919-1.

This file is owned by root:root, with mode 0o755.

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
#!/bin/sh

# This file is maintained at http://git.mdcc.cx/caspar

# csp_scp_keep_mode - use ssh to copy a file, keeping its file permission mode

# based upon an idea of Wessel Dankers

# user joe pushed file bar to host murphy, in directory /foo/. on murphy,
# /foo/bar is owned by joe:joe.  Now, ann wants to change murphy:/foo/bar.  She
# however lacks permissions.  Using a new group "hackers", and performing chmod
# g+s on murphy:/foo/ fixes this partially: the files now belong to the right
# group "hackers".  However, a mode g+w on a file is generally _not_ preserved
# when scp-ing a new version of the file.
#
# Zorg dat op alle desktops het scriptje "csp_install_origal_mode" ergens
# in het $PATH van de gebruikers staat.
# Voorzie de include/install.mk verder van:
#
#  csp_scp_keep_mode_FUNC = csp_scp_keep_mode $(1) $(2) $(3)
#  csp_PUSH = $(csp_scp_keep_mode_FUNC)
#

: ${csp_SSH:=ssh}
exec $csp_SSH $1 't=`mktemp` && cat >$t && mv $t $2/$3' < $3