public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [login - The unix login(1), tweaked for Cygwin] branch master, updated. v1_12-1-gc8dbcec
@ 2019-03-16 15:27 corinna
  0 siblings, 0 replies; only message in thread
From: corinna @ 2019-03-16 15:27 UTC (permalink / raw)
  To: cygwin-apps-cvs




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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-16 15:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-16 15:27 [login - The unix login(1), tweaked for Cygwin] branch master, updated. v1_12-1-gc8dbcec corinna

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).