commit db05bd231885621108b77ae27375df121b78535c
Author:     Jan Klemkow <[email protected]>
AuthorDate: Tue Apr 14 23:33:45 2020 +0200
Commit:     Jan Klemkow <[email protected]>
CommitDate: Tue Apr 14 23:34:29 2020 +0200

    ptty: write input from child to stdout

diff --git a/ptty.c b/ptty.c
index 6e4ff6b..c0f81d9 100644
--- a/ptty.c
+++ b/ptty.c
@@ -96,7 +96,8 @@ main(int argc, char *argv[])
                die("close:");
 
        char buf[BUFSIZ];
-       while (fgets(buf, sizeof buf, fh) != NULL);
+       while (fgets(buf, sizeof buf, fh) != NULL)
+               fputs(buf, stdout);
 
        int status;
        waitpid(pid, &status, 0);

Reply via email to