OpenBSD CVS

CVS log for src/usr.bin/ssh/sshpty.c


[BACK] Up to [local] / src / usr.bin / ssh

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.34 / (download) - annotate - [select for diffs], Thu Jul 4 16:20:10 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, HEAD
Changes since 1.33: +3 -1 lines
Diff to previous 1.33 (colored)

fatal() if getgrnam() cannot find "tty"

Revision 1.33 / (download) - annotate - [select for diffs], Thu Jul 4 16:16:51 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

stat() returns precisely -1 to indicate error

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:04 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.31: +10 -10 lines
Diff to previous 1.31 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Nov 29 03:54:50 2016 UTC (7 years, 5 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.30: +13 -1 lines
Diff to previous 1.30 (colored)

Factor out code to disconnect from controlling terminal into its own
function.  ok djm@

Revision 1.29.2.1 / (download) - annotate - [select for diffs], Wed Aug 12 20:22:42 2015 UTC (8 years, 9 months ago) by sthen
Branch: OPENBSD_5_7
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

MFC sshpty.c r1.30, "fix pty permissions; patch from Nikolay Edigaryev; ok deraadt"

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jul 30 23:09:15 2015 UTC (8 years, 9 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

fix pty permissions; patch from Nikolay Edigaryev; ok deraadt

Revision 1.29 / (download) - annotate - [select for diffs], Wed Sep 3 18:55:07 2014 UTC (9 years, 8 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE
Branch point for: OPENBSD_5_7
Changes since 1.28: +3 -8 lines
Diff to previous 1.28 (colored)

tighten permissions on pty when the "tty" group does not exist;
pointed out by Corinna Vinschen; ok markus

Revision 1.28 / (download) - annotate - [select for diffs], Tue Sep 11 23:49:09 2007 UTC (16 years, 8 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.27: +1 -6 lines
Diff to previous 1.27 (colored)

remove #if defined block not needed; ok markus@ dtucker@

Revision 1.27 / (download) - annotate - [select for diffs], Tue Sep 11 04:36:29 2007 UTC (16 years, 8 months ago) by stevesk
Branch: MAIN
Changes since 1.26: +3 -2 lines
Diff to previous 1.26 (colored)

sort #include

Revision 1.12.6.1 / (download) - annotate - [select for diffs], Fri Oct 6 03:19:33 2006 UTC (17 years, 7 months ago) by brad
Branch: OPENBSD_3_8
Changes since 1.12: +18 -6 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

upgrade to OpenSSH 4.4

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Sat Sep 30 04:06:51 2006 UTC (17 years, 7 months ago) by brad
Branch: OPENBSD_3_9
Changes since 1.16: +13 -8 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

upgrade to OpenSSH 4.4

Revision 1.26 / (download) - annotate - [select for diffs], Thu Aug 3 03:34:42 2006 UTC (17 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.25: +3 -5 lines
Diff to previous 1.25 (colored)

almost entirely get rid of the culture of ".h files that include .h files"
ok djm, sort of ok stevesk
makes the pain stop in one easy step

Revision 1.25 / (download) - annotate - [select for diffs], Sat Jul 22 20:48:23 2006 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

move #include <string.h> out of includes.h

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jul 17 01:31:10 2006 UTC (17 years, 10 months ago) by stevesk
Branch: MAIN
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

move #include <unistd.h> out of includes.h

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jul 11 20:07:25 2006 UTC (17 years, 10 months ago) by stevesk
Branch: MAIN
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

move #include <errno.h> out of includes.h; ok markus@

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jul 9 15:15:11 2006 UTC (17 years, 10 months ago) by stevesk
Branch: MAIN
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

move #include <fcntl.h> out of includes.h

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jul 6 16:03:53 2006 UTC (17 years, 10 months ago) by stevesk
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

move #include <pwd.h> out of includes.h; ok markus@

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jul 2 22:45:59 2006 UTC (17 years, 10 months ago) by stevesk
Branch: MAIN
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

move #include <grp.h> out of includes.h

Revision 1.19 / (download) - annotate - [select for diffs], Sat Mar 25 13:17:03 2006 UTC (18 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.18: +1 -0 lines
Diff to previous 1.18 (colored)

Put $OpenBSD$ tags back (as comments) to replace the RCSID()s that
Theo nuked - our scripts to sync -portable need them in the files

Revision 1.18 / (download) - annotate - [select for diffs], Mon Mar 20 18:14:02 2006 UTC (18 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +4 -3 lines
Diff to previous 1.17 (colored)

sprinkle u_int throughout pty subsystem, ok markus

Revision 1.17 / (download) - annotate - [select for diffs], Sun Mar 19 18:51:19 2006 UTC (18 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +0 -1 lines
Diff to previous 1.16 (colored)

RCSID() can die

Revision 1.16 / (download) - annotate - [select for diffs], Mon Feb 20 17:19:54 2006 UTC (18 years, 2 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE
Branch point for: OPENBSD_3_9
Changes since 1.15: +3 -1 lines
Diff to previous 1.15 (colored)

move #include <sys/stat.h> out of includes.h; ok markus@

Revision 1.15 / (download) - annotate - [select for diffs], Fri Feb 10 00:27:13 2006 UTC (18 years, 3 months ago) by stevesk
Branch: MAIN
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)

move #include <sys/ioctl.h> out of includes.h; ok markus@

Revision 1.14 / (download) - annotate - [select for diffs], Wed Feb 8 12:15:27 2006 UTC (18 years, 3 months ago) by stevesk
Branch: MAIN
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

move #include <paths.h> out of includes.h; ok markus@

Revision 1.13 / (download) - annotate - [select for diffs], Tue Feb 7 01:42:00 2006 UTC (18 years, 3 months ago) by stevesk
Branch: MAIN
Changes since 1.12: +3 -1 lines
Diff to previous 1.12 (colored)

move #include <termios.h> out of includes.h; ok markus@

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Thu Aug 19 22:37:33 2004 UTC (19 years, 9 months ago) by brad
Branch: OPENBSD_3_4
Changes since 1.10.2.1: +18 -18 lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

upgrade to OpenSSH 3.9

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Thu Aug 19 04:13:28 2004 UTC (19 years, 9 months ago) by brad
Branch: OPENBSD_3_5
Changes since 1.11: +18 -18 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

upgrade to OpenSSH 3.9

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jun 21 17:36:31 2004 UTC (19 years, 10 months ago) by avsm
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Branch point for: OPENBSD_3_8
Changes since 1.11: +18 -18 lines
Diff to previous 1.11 (colored)

make ssh -Wshadow clean, no functional changes
markus@ ok

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Thu Mar 4 18:18:17 2004 UTC (20 years, 2 months ago) by brad
Branch: OPENBSD_3_3
Changes since 1.8.2.1: +1 -122 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

upgrade to OpenSSH 3.8upgrade to OpenSSH 3.8upgrade to OpenSSH 3.8

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Sat Feb 28 03:51:34 2004 UTC (20 years, 2 months ago) by brad
Branch: OPENBSD_3_4
Changes since 1.10: +1 -122 lines
Diff to previous 1.10 (colored)

upgrade to OpenSSH 3.8

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jan 11 21:55:06 2004 UTC (20 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE
Branch point for: OPENBSD_3_5
Changes since 1.10: +1 -122 lines
Diff to previous 1.10 (colored)

for pty opening, only use the openpty() path.  the other stuff only needs
to be in openssh-p; markus ok

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Tue Sep 16 21:20:29 2003 UTC (20 years, 8 months ago) by brad
Branch: OPENBSD_3_2
Changes since 1.7.2.1: +4 -4 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

upgrade to OpenSSH 3.7

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Tue Sep 16 20:50:44 2003 UTC (20 years, 8 months ago) by brad
Branch: OPENBSD_3_3
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

upgrade to OpenSSH 3.7

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jun 12 07:57:38 2003 UTC (20 years, 11 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE
Branch point for: OPENBSD_3_4
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

typos; dtucker at zip.com.au

Revision 1.9 / (download) - annotate - [select for diffs], Sat May 24 09:30:40 2003 UTC (20 years, 11 months ago) by djm
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

cast some types for printing; ok markus@

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Thu Apr 3 22:35:18 2003 UTC (21 years, 1 month ago) by miod
Branch: OPENBSD_3_1
Changes since 1.4.2.1: +3 -3 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Merge OpenSSH 3.6.1

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Tue Apr 1 00:12:14 2003 UTC (21 years, 1 month ago) by margarida
Branch: OPENBSD_3_2
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Update to OpenSSH 3.6

Revision 1.8 / (download) - annotate - [select for diffs], Mon Feb 3 08:56:16 2003 UTC (21 years, 3 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE
Branch point for: OPENBSD_3_3
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

don't call error() for readonly /dev; from soekris list; ok mcbride,
henning, deraadt.

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Wed Jun 26 18:22:37 2002 UTC (21 years, 10 months ago) by miod
Branch: OPENBSD_3_0
Changes since 1.3.2.1: +8 -8 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

There was an update to OpenSSH 3.4, and people rejoiced.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Wed Jun 26 15:30:39 2002 UTC (21 years, 10 months ago) by jason
Branch: OPENBSD_3_1
Changes since 1.4: +8 -8 lines
Diff to previous 1.4 (colored)

Pull in OpenSSH-3.4

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jun 24 17:57:20 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE
Branch point for: OPENBSD_3_2
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

explicit (u_int) for uid and gid

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jun 23 21:06:13 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

KNF

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jun 23 03:30:58 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

various KNF and %d for unsigned

Revision 1.1.6.2 / (download) - annotate - [select for diffs], Sat Mar 9 00:20:45 2002 UTC (22 years, 2 months ago) by miod
Branch: OPENBSD_2_9
Changes since 1.1.6.1: +11 -11 lines
Diff to previous 1.1.6.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Merge OpenSSH 3.1, keeping /etc as configuration files directory.
(i.e. OpenSSH 3.1 + openbsd29_3.1.patch)

Revision 1.1.4.4 / (download) - annotate - [select for diffs], Fri Mar 8 17:04:43 2002 UTC (22 years, 2 months ago) by brad
Branch: OPENBSD_2_8
Changes since 1.1.4.3: +11 -11 lines
Diff to previous 1.1.4.3 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Merge OpenSSH 3.1.

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Thu Mar 7 17:37:48 2002 UTC (22 years, 2 months ago) by jason
Branch: OPENBSD_3_0
Changes since 1.3: +11 -11 lines
Diff to previous 1.3 (colored)

Update to OpenSSH-3.1 on 3.0-stable branch

Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 19 07:18:56 2001 UTC (22 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE
Branch point for: OPENBSD_3_1
Changes since 1.3: +11 -11 lines
Diff to previous 1.3 (colored)

basic KNF done while i was looking for something else

Revision 1.1.6.1 / (download) - annotate - [select for diffs], Thu Sep 27 19:03:56 2001 UTC (22 years, 7 months ago) by jason
Branch: OPENBSD_2_9
Changes since 1.1: +5 -3 lines
Diff to previous 1.1 (colored)

Pull in OpenSSH-2.9.9

Revision 1.1.4.3 / (download) - annotate - [select for diffs], Thu Sep 27 00:15:43 2001 UTC (22 years, 7 months ago) by miod
Branch: OPENBSD_2_8
Changes since 1.1.4.2: +5 -3 lines
Diff to previous 1.1.4.2 (colored) to branchpoint 1.1 (colored)

Pull in OpenSSH 2.9.9 to the 2.8 branch.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jul 22 21:32:27 2001 UTC (22 years, 10 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE
Branch point for: OPENBSD_3_0
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

update comment

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jul 18 21:10:43 2001 UTC (22 years, 10 months ago) by markus
Branch: MAIN
Changes since 1.1: +3 -2 lines
Diff to previous 1.1 (colored)

pr #1946, allow sshd if /dev is readonly

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Mon May 7 21:09:38 2001 UTC (23 years ago) by jason
Branch: OPENBSD_2_8
Changes since 1.1.4.1: +0 -0 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored)

Pull in OpenSSH-2.9 to 2.8 branch.

Revision 1.1.4.1 / (download) - annotate - [select for diffs], Wed Mar 21 19:46:32 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_8
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

Pull in OpenSSH-2.5.2 for 2.8 branch.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Wed Mar 21 18:53:18 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Pull in OpenSSH-2.5.2 for 2.7 branch.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 4 01:46:30 2001 UTC (23 years, 2 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE
Branch point for: OPENBSD_2_9, OPENBSD_2_8, OPENBSD_2_7

Rename pty.[ch] -> sshpty.[ch] and login.[ch] to sshlogin.[ch] to avoid
header conflicts in portable; ok markus@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.