View | Details | Raw Unified | Return to bug 3518
Collapse All | Expand All

(-)test-exec.sh (+7 lines)
Lines 332-337 cat << EOF > $OBJ/sshd_config Link Here
332
	Subsystem	sftp	$SFTPSERVER
332
	Subsystem	sftp	$SFTPSERVER
333
EOF
333
EOF
334
334
335
# If we're testing a non-installed scp, we'll add its directory to sshd's
336
# PATH.
337
case "$SCP" in
338
/*)	PATH_WITH_SCP="`dirname $SCP`:$PATH"
339
	echo "	SetEnv PATH='$PATH_WITH_SCP'" >>$OBJ/sshd_config ;;
340
esac
341
335
# This may be necessary if /usr/src and/or /usr/obj are group-writable,
342
# This may be necessary if /usr/src and/or /usr/obj are group-writable,
336
# but if you aren't careful with permissions then the unit tests could
343
# but if you aren't careful with permissions then the unit tests could
337
# be abused to locally escalate privileges.
344
# be abused to locally escalate privileges.

Return to bug 3518