=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/Attic/pty.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- src/usr.bin/ssh/Attic/pty.c 2000/12/12 22:50:21 1.17 +++ src/usr.bin/ssh/Attic/pty.c 2000/12/13 06:36:05 1.18 @@ -12,7 +12,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: pty.c,v 1.17 2000/12/12 22:50:21 ho Exp $"); +RCSID("$OpenBSD: pty.c,v 1.18 2000/12/13 06:36:05 deraadt Exp $"); #include #include "pty.h" @@ -270,13 +270,13 @@ * Change owner and mode of the tty as required. * Warn but continue if filesystem is read-only and the uids match. */ - if (stat (ttyname, &st)) + if (stat(ttyname, &st)) fatal("stat(%.100s) failed: %.100s", ttyname, strerror(errno)); if (st.st_uid != pw->pw_uid || st.st_gid != gid) { - if (chown (ttyname, pw->pw_uid, gid) < 0) { - if ((errno == EROFS) && (st.st_uid == pw->pw_uid)) + 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, strerror(errno)); @@ -288,9 +288,9 @@ } if ((st.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO)) != mode) { - if (chmod (ttyname, mode) < 0) { - if ((errno == EROFS) && - ((st.st_mode & (S_IRGRP | S_IROTH)) == 0)) + if (chmod(ttyname, mode) < 0) { + if (errno == EROFS && + (st.st_mode & (S_IRGRP | S_IROTH)) == 0) error("chmod(%.100s, 0%o) failed: %.100s", ttyname, mode, strerror(errno)); else