Mercurial > dropbear
diff sshpty.c @ 299:740e782679be ucc-axis-hack
Various changes to compile+kind of run on UCC's axis board.
Note that fprintf(stdin -> printf( accounts for many of the changes
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 25 Mar 2006 12:57:09 +0000 |
parents | 5c6f9d27ea1c |
children |
line wrap: on
line diff
--- a/sshpty.c Fri Dec 09 06:10:27 2005 +0000 +++ b/sshpty.c Sat Mar 25 12:57:09 2006 +0000 @@ -247,6 +247,8 @@ void pty_release(const char *tty_name) { + // matt + return; if (chown(tty_name, (uid_t) 0, (gid_t) 0) < 0 && (errno != ENOENT)) { dropbear_log(LOG_ERR, @@ -380,6 +382,8 @@ tty_name, strerror(errno)); } +#if 0 + matt if (st.st_uid != pw->pw_uid || st.st_gid != gid) { if (chown(tty_name, pw->pw_uid, gid) < 0) { if (errno == EROFS && @@ -409,4 +413,5 @@ } } } +#endif }