public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
From: corinna@sourceware.org
To: cygwin-apps-cvs@sourceware.org
Subject: [login - The unix login(1), tweaked for Cygwin] branch master, updated. v1_12-1-gc8dbcec
Date: Sat, 16 Mar 2019 15:27:00 -0000	[thread overview]
Message-ID: <20190316152740.71532.qmail@sourceware.org> (raw)




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/login.git;h=c8dbcec5c080697fb9726d89e7b6646a5cdc0e17

commit c8dbcec5c080697fb9726d89e7b6646a5cdc0e17
Author: Takashi Yano <takashi.yano@nifty.ne.jp>
Date:   Sat Mar 9 10:11:54 2019 +0900

    Fix the issue that GNU screen and tmux cannot read tty input if they are started in a telnet session.
    
    * login.c (main): Add chown() and chmod() to change the ownership
    and the permissions of tty.


Diff:
---
 login.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/login.c b/login.c
index 271d5e8..918f228 100644
--- a/login.c
+++ b/login.c
@@ -280,6 +280,8 @@ main (int argc, char **argv)
 	  sleep ((u_int) ((cnt - 3) * 5));
 	}
     }
+  chown (ttyn, pwd->pw_uid, pwd->pw_gid);
+  chmod (ttyn, 0600);
 
   /* committed to login -- turn off timeout */
   (void) alarm ((u_int) 0);


                 reply	other threads:[~2019-03-16 15:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190316152740.71532.qmail@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-apps-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).