Skip to content

Commit d49a07f

Browse files
remove trailing space + useless diff lines
1 parent 1769c0b commit d49a07f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/SCE/sce_engine.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ xccdf_test_result_type_t sce_engine_eval_rule(struct xccdf_policy *policy, const
491491
env_values[env_value_count] = env_operator_entry;
492492
env_value_count++;
493493
}
494-
494+
495495
env_values = realloc(env_values, (env_value_count + 1) * sizeof(char*));
496496
env_values[env_value_count] = NULL;
497497

@@ -507,7 +507,7 @@ xccdf_test_result_type_t sce_engine_eval_rule(struct xccdf_policy *policy, const
507507

508508
// FIXME: We definitely want to impose security restrictions in the forked child process in the future.
509509
// This would prevent scripts from writing to files or deleting them.
510-
510+
511511
int fork_result = fork();
512512
if (fork_result >= 0)
513513
{
@@ -519,7 +519,7 @@ xccdf_test_result_type_t sce_engine_eval_rule(struct xccdf_policy *policy, const
519519
// we won't read from the pipes, so close the reading fd
520520
close(stdout_pipefd[0]);
521521
close(stderr_pipefd[0]);
522-
522+
523523
// forward stdout and stderr to our custom opened pipes
524524
dup2(stdout_pipefd[1], fileno(stdout));
525525
dup2(stderr_pipefd[1], fileno(stderr));
@@ -547,7 +547,7 @@ xccdf_test_result_type_t sce_engine_eval_rule(struct xccdf_policy *policy, const
547547
} else {
548548
execve(tmp_href, argvp, env_values);
549549
}
550-
550+
551551
free_env_values(env_values, index_of_first_env_value_not_compiled_in, env_value_count);
552552

553553
// no need to check the return value of execve, if it returned at all we are in trouble

0 commit comments

Comments
 (0)