diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-02-25 21:12:42 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-02-25 21:12:42 +0000 |
| commit | 8ae3f44991948cc97b09adc248a9a46db71bf9e0 (patch) | |
| tree | 3c23b0343120c282b2edb1419f72283689c73791 /contrib/ntp/html/drivers/scripts | |
| parent | 7305604b29d3db29c9bb5de6e7a25829fb541d1e (diff) | |
Our manual page states that if given a null pointer, system() returns
non-zero if the shell is available and zero if it is not. This is
consistent with the C standard's description of system(), but it is not
what we actually do. What we actually do is always return non-zero, as
required by POSIX.
As the POSIX rationale explains, implementing the logic required by the
C standard does not violate POSIX, since a conforming system always has
a shell, therefore the logic will always return non-zero.
Since our libc is commonly used in non-conforming situations such as
chroots or thin jails, we should implement the full logic required by
the C standard.
MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: obiwac, bnovkov, kevans
Differential Revision: https://reviews.freebsd.org/D55484
Diffstat (limited to 'contrib/ntp/html/drivers/scripts')
0 files changed, 0 insertions, 0 deletions
