From 1b65ca2c9343247592809cc97e05d008bc687e77 Mon Sep 17 00:00:00 2001 From: Jaco Kroon Date: Wed, 22 Jan 2025 23:47:51 +0200 Subject: [PATCH] Make a note about shell expansion in pppd man page for pty option. (#545) Signed-off-by: Jaco Kroon --- pppd/pppd.8 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pppd/pppd.8 b/pppd/pppd.8 index 3a787a0f..b79fc8d0 100644 --- a/pppd/pppd.8 +++ b/pppd/pppd.8 @@ -1021,6 +1021,11 @@ pseudo-tty master as its standard input and output. An explicit device name may not be given if this option is used. (Note: if the \fIrecord\fR option is used in conjunction with the \fIpty\fR option, the child process will have pipes on its standard input and output.) + +It is important to note that script will be executed by passing it to /bin/sh +using -c, such that if script contains arguments /bin/sh may attempt to +interpret that, and thus any arguments should be escaped to avoid shell +expansion. .TP .B receive\-all With this option, pppd will accept all control characters from the