Skip to content
Snippets Groups Projects

system(): on command == NULL, return nonzero if shell exists

From man system.3:

   The return value of system() is one of the following:

   *  If command is NULL, then a nonzero value if a shell is
      available, or 0 if no shell is available.

This makes relibc system() conform to POSIX in that regard (and also adds a test).

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading