Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Compliant Solution (POSIX) (ls)

In this compliant code examplesolution, the environment is first cleared out using clearenv() and then the $PATH and $IFS variables are set to safe values before invoking system().

...