diff options
author | Kevin Steves <stevesk@pobox.com> | 2001-02-05 13:42:17 +0100 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2001-02-05 13:42:17 +0100 |
commit | ef4eea9badfb65f05ac24f786b710cc3f27f0e43 (patch) | |
tree | f54abef181ccd6ad5285a5c16b4c159d8b74e932 /pty.c | |
parent | - (bal) AIX patch for auth1.c by William L. Jones <jones@hpc.utexas.edu> (diff) | |
download | openssh-ef4eea9badfb65f05ac24f786b710cc3f27f0e43.tar.xz openssh-ef4eea9badfb65f05ac24f786b710cc3f27f0e43.zip |
- stevesk@cvs.openbsd.org 2001/02/04 08:32:27
[many files; did this manually to our top-level source dir]
unexpand and remove end-of-line whitespace; ok markus@
Diffstat (limited to 'pty.c')
-rw-r--r-- | pty.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -176,8 +176,8 @@ pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) *ptyfd = open(buf, O_RDWR | O_NOCTTY); if (*ptyfd < 0) continue; - } - + } + /* Open the slave side. */ *ttyfd = open(namebuf, O_RDWR | O_NOCTTY); if (*ttyfd < 0) { @@ -315,11 +315,11 @@ pty_setowner(struct passwd *pw, const char *ttyname) if (chown(ttyname, pw->pw_uid, gid) < 0) { if (errno == EROFS && st.st_uid == pw->pw_uid) error("chown(%.100s, %d, %d) failed: %.100s", - ttyname, pw->pw_uid, gid, + ttyname, pw->pw_uid, gid, strerror(errno)); else fatal("chown(%.100s, %d, %d) failed: %.100s", - ttyname, pw->pw_uid, gid, + ttyname, pw->pw_uid, gid, strerror(errno)); } } |