diff options
author | espie <> | 2016-02-05 18:09:19 +0000 |
---|---|---|
committer | espie <> | 2016-02-05 18:09:19 +0000 |
commit | e2e8fd05bbcd52932dd3120ace2668456afc6a96 (patch) | |
tree | 8036e3e3f595be5393aab401f4a393ebcc6a9a2f /src/lib | |
parent | 2c0cf573dfd97efbdbfb2549f5e08e7e5d2d1a55 (diff) | |
download | openbsd-e2e8fd05bbcd52932dd3120ace2668456afc6a96.tar.gz openbsd-e2e8fd05bbcd52932dd3120ace2668456afc6a96.tar.bz2 openbsd-e2e8fd05bbcd52932dd3120ace2668456afc6a96.zip |
be more forceful about not using these.
improvements sthen@, jmc@. okay millert@, jca@ jmc@
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libc/stdlib/system.3 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/system.3 b/src/lib/libc/stdlib/system.3 index 878bb0a9d2..bdd94c0115 100644 --- a/src/lib/libc/stdlib/system.3 +++ b/src/lib/libc/stdlib/system.3 | |||
@@ -29,9 +29,9 @@ | |||
29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
30 | .\" SUCH DAMAGE. | 30 | .\" SUCH DAMAGE. |
31 | .\" | 31 | .\" |
32 | .\" $OpenBSD: system.3,v 1.13 2013/07/18 10:14:50 schwarze Exp $ | 32 | .\" $OpenBSD: system.3,v 1.14 2016/02/05 18:09:19 espie Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd $Mdocdate: July 18 2013 $ | 34 | .Dd $Mdocdate: February 5 2016 $ |
35 | .Dt SYSTEM 3 | 35 | .Dt SYSTEM 3 |
36 | .Os | 36 | .Os |
37 | .Sh NAME | 37 | .Sh NAME |
@@ -107,3 +107,10 @@ string. | |||
107 | Shell meta-characters present will be honored by the | 107 | Shell meta-characters present will be honored by the |
108 | .Xr sh 1 | 108 | .Xr sh 1 |
109 | command interpreter. | 109 | command interpreter. |
110 | .Pp | ||
111 | It is often simpler to bypass the shell and run an external command using | ||
112 | .Xr fork 2 , | ||
113 | .Xr execlp 3 , | ||
114 | and | ||
115 | .Xr waitpid 2 | ||
116 | directly instead of having to sanitize a string for shell consumption. | ||