File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -306,8 +306,7 @@ echo "Starting the evaluation..."
306306if [ -z " $OSCAP_SUDO " ]; then
307307 ssh_execute_with_command_and_options " cd $REMOTE_TEMP_DIR ; oscap $( command_array_to_string " ${oscap_args[@]} " ) " " $SSH_TTY_ALLOCATION_OPTION "
308308else
309- OSCAP_CMD=" oscap $( command_array_to_string " ${oscap_args[@]} " ) ; rc=\$ ?; chown \$ SUDO_USER $REMOTE_TEMP_DIR /*; exit \$ rc"
310- ssh_execute_with_command_and_options " cd $REMOTE_TEMP_DIR ; $OSCAP_SUDO sh -c '$OSCAP_CMD '" " $SSH_TTY_ALLOCATION_OPTION "
309+ ssh_execute_with_command_and_options " cd $REMOTE_TEMP_DIR ; umask 022; $OSCAP_SUDO scap $( command_array_to_string " ${oscap_args[@]} " ) " " $SSH_TTY_ALLOCATION_OPTION "
311310fi
312311OSCAP_EXIT_CODE=$?
313312echo " oscap exit code: $OSCAP_EXIT_CODE "
You can’t perform that action at this time.
0 commit comments