really useful in sudoreplay is stdin when input is from a pipe.
Select which I/O type(s) to display. By default, s\bsu\bud\bdo\bor\bre\bep\bpl\bla\bay\by
will display the command's standard output, standard error
and tty output. The _\bf_\bi_\bl_\bt_\be_\br argument is a comma-separated
- list, consisting of one or more of following: _\bs_\bt_\bd_\bo_\bu_\bt, _\bs_\bt_\bd_\be_\br_\br,
- and _\bt_\bt_\by_\bo_\bu_\bt.
+ list, consisting of one or more of following: _\bs_\bt_\bd_\bi_\bn, _\bs_\bt_\bd_\bo_\bu_\bt,
+ _\bs_\bt_\bd_\be_\br_\br, _\bt_\bt_\by_\bi_\bn, and _\bt_\bt_\by_\bo_\bu_\bt.
-\b-h\bh, -\b--\b-h\bhe\bel\blp\bp Display a short help message to the standard output and exit.
file distributed with s\bsu\bud\bdo\bo or https://www.sudo.ws/license.html for
complete details.
-Sudo 1.8.19 May 4, 2016 Sudo 1.8.19
+Sudo 1.8.19 November 30, 2016 Sudo 1.8.19
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.TH "SUDOREPLAY" "8" "May 4, 2016" "Sudo @PACKAGE_VERSION@" "System Manager's Manual"
+.TH "SUDOREPLAY" "8" "November 30, 2016" "Sudo @PACKAGE_VERSION@" "System Manager's Manual"
.nh
.if n .ad l
.SH "NAME"
The
\fIfilter\fR
argument is a comma-separated list, consisting of one or more of following:
+\fIstdin\fR,
\fIstdout\fR,
\fIstderr\fR,
+\fIttyin\fR,
and
\fIttyout\fR.
.TP 12n
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd May 4, 2016
+.Dd November 30, 2016
.Dt SUDOREPLAY @mansectsu@
.Os Sudo @PACKAGE_VERSION@
.Sh NAME
The
.Ar filter
argument is a comma-separated list, consisting of one or more of following:
+.Em stdin ,
.Em stdout ,
.Em stderr ,
+.Em ttyin ,
and
.Em ttyout .
.It Fl h , -help
/* Set the replay filter. */
def_filter = false;
for (cp = strtok_r(optarg, ",", &ep); cp; cp = strtok_r(NULL, ",", &ep)) {
- if (strcmp(cp, "stdout") == 0)
+ if (strcmp(cp, "stdin") == 0)
+ io_log_files[IOFD_STDIN].enabled = true;
+ else if (strcmp(cp, "stdout") == 0)
io_log_files[IOFD_STDOUT].enabled = true;
else if (strcmp(cp, "stderr") == 0)
io_log_files[IOFD_STDERR].enabled = true;
+ else if (strcmp(cp, "ttyin") == 0)
+ io_log_files[IOFD_TTYIN].enabled = true;
else if (strcmp(cp, "ttyout") == 0)
io_log_files[IOFD_TTYOUT].enabled = true;
else