summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--atomicio.c4
-rw-r--r--auth.c3
-rw-r--r--canohost.c3
-rw-r--r--channels.c3
-rw-r--r--clientloop.c3
-rw-r--r--includes.h3
-rw-r--r--misc.c3
-rw-r--r--monitor.c3
-rw-r--r--monitor_fdpass.c4
-rw-r--r--monitor_mm.c4
-rw-r--r--monitor_wrap.c3
-rw-r--r--msg.c4
-rw-r--r--nchan.c4
-rw-r--r--packet.c3
-rw-r--r--progressmeter.c3
-rw-r--r--readconf.c3
-rw-r--r--readpass.c3
-rw-r--r--scp.c3
-rw-r--r--serverloop.c3
-rw-r--r--session.c3
-rw-r--r--sftp-client.c3
-rw-r--r--sftp-server.c3
-rw-r--r--sftp.c4
-rw-r--r--ssh-agent.c3
-rw-r--r--ssh-keygen.c3
-rw-r--r--sshconnect.c3
-rw-r--r--sshconnect2.c4
-rw-r--r--sshd.c3
-rw-r--r--sshlogin.c3
-rw-r--r--sshpty.c3
-rw-r--r--ttymodes.c3
-rw-r--r--uidswap.c3
33 files changed, 78 insertions, 34 deletions
diff --git a/ChangeLog b/ChangeLog
index 74bfb0d3b..32603360d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -29,6 +29,13 @@
29 add ExitOnForwardFailure: terminate the connection if ssh(1) 29 add ExitOnForwardFailure: terminate the connection if ssh(1)
30 cannot set up all requested dynamic, local, and remote port 30 cannot set up all requested dynamic, local, and remote port
31 forwardings. ok djm, dtucker, stevesk, jmc 31 forwardings. ok djm, dtucker, stevesk, jmc
32 - stevesk@cvs.openbsd.org 2006/07/11 20:07:25
33 [scp.c auth.c monitor.c serverloop.c sftp-server.c sshpty.c readpass.c
34 sshd.c monitor_wrap.c monitor_fdpass.c ssh-agent.c ttymodes.c atomicio.c
35 includes.h session.c sshlogin.c monitor_mm.c packet.c sshconnect2.c
36 sftp-client.c nchan.c clientloop.c sftp.c misc.c canohost.c channels.c
37 ssh-keygen.c progressmeter.c uidswap.c msg.c readconf.c sshconnect.c]
38 move #include <errno.h> out of includes.h; ok markus@
32 39
3320060711 4020060711
34 - (dtucker) [configure.ac ssh-keygen.c openbsd-compat/bsd-openpty.c 41 - (dtucker) [configure.ac ssh-keygen.c openbsd-compat/bsd-openpty.c
@@ -4878,4 +4885,4 @@
4878 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 4885 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
4879 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 4886 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
4880 4887
4881$Id: ChangeLog,v 1.4396 2006/07/12 12:17:10 dtucker Exp $ 4888$Id: ChangeLog,v 1.4397 2006/07/12 12:22:46 dtucker Exp $
diff --git a/atomicio.c b/atomicio.c
index 3939785df..bf1c0fd18 100644
--- a/atomicio.c
+++ b/atomicio.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: atomicio.c,v 1.19 2006/04/16 07:59:00 djm Exp $ */ 1/* $OpenBSD: atomicio.c,v 1.20 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Copyright (c) 2006 Damien Miller. All rights reserved. 3 * Copyright (c) 2006 Damien Miller. All rights reserved.
4 * Copyright (c) 2005 Anil Madhavapeddy. All rights reserved. 4 * Copyright (c) 2005 Anil Madhavapeddy. All rights reserved.
@@ -28,6 +28,8 @@
28 28
29#include "includes.h" 29#include "includes.h"
30 30
31#include <errno.h>
32
31#include "atomicio.h" 33#include "atomicio.h"
32 34
33/* 35/*
diff --git a/auth.c b/auth.c
index 6901c936a..e5ddc79da 100644
--- a/auth.c
+++ b/auth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth.c,v 1.69 2006/07/10 16:37:36 stevesk Exp $ */ 1/* $OpenBSD: auth.c,v 1.70 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Copyright (c) 2000 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000 Markus Friedl. All rights reserved.
4 * 4 *
@@ -28,6 +28,7 @@
28#include <sys/types.h> 28#include <sys/types.h>
29#include <sys/stat.h> 29#include <sys/stat.h>
30 30
31#include <errno.h>
31#ifdef HAVE_PATHS_H 32#ifdef HAVE_PATHS_H
32# include <paths.h> 33# include <paths.h>
33#endif 34#endif
diff --git a/canohost.c b/canohost.c
index 538b141b1..4566e2ab1 100644
--- a/canohost.c
+++ b/canohost.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: canohost.c,v 1.55 2006/07/08 21:47:12 stevesk Exp $ */ 1/* $OpenBSD: canohost.c,v 1.56 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -20,6 +20,7 @@
20#include <netinet/in.h> 20#include <netinet/in.h>
21 21
22#include <ctype.h> 22#include <ctype.h>
23#include <errno.h>
23 24
24#include "packet.h" 25#include "packet.h"
25#include "xmalloc.h" 26#include "xmalloc.h"
diff --git a/channels.c b/channels.c
index 51718578b..555067255 100644
--- a/channels.c
+++ b/channels.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: channels.c,v 1.253 2006/07/11 18:50:47 markus Exp $ */ 1/* $OpenBSD: channels.c,v 1.254 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -49,6 +49,7 @@
49#include <netinet/in.h> 49#include <netinet/in.h>
50#include <arpa/inet.h> 50#include <arpa/inet.h>
51 51
52#include <errno.h>
52#include <termios.h> 53#include <termios.h>
53 54
54#include "ssh.h" 55#include "ssh.h"
diff --git a/clientloop.c b/clientloop.c
index 6cb2a7ac7..978289b61 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clientloop.c,v 1.167 2006/07/11 18:50:47 markus Exp $ */ 1/* $OpenBSD: clientloop.c,v 1.168 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -69,6 +69,7 @@
69#include <sys/ioctl.h> 69#include <sys/ioctl.h>
70 70
71#include <ctype.h> 71#include <ctype.h>
72#include <errno.h>
72#ifdef HAVE_PATHS_H 73#ifdef HAVE_PATHS_H
73#include <paths.h> 74#include <paths.h>
74#endif 75#endif
diff --git a/includes.h b/includes.h
index 22a2c5944..08d34486b 100644
--- a/includes.h
+++ b/includes.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: includes.h,v 1.48 2006/07/10 16:37:36 stevesk Exp $ */ 1/* $OpenBSD: includes.h,v 1.49 2006/07/11 20:07:25 stevesk Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -21,7 +21,6 @@
21#define _GNU_SOURCE /* activate extra prototypes for glibc */ 21#define _GNU_SOURCE /* activate extra prototypes for glibc */
22 22
23#include <stdio.h> 23#include <stdio.h>
24#include <errno.h>
25#include <stdlib.h> 24#include <stdlib.h>
26#include <string.h> 25#include <string.h>
27#include <time.h> 26#include <time.h>
diff --git a/misc.c b/misc.c
index 4d6576ad6..fba085d9b 100644
--- a/misc.c
+++ b/misc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: misc.c,v 1.57 2006/07/10 16:37:36 stevesk Exp $ */ 1/* $OpenBSD: misc.c,v 1.58 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Copyright (c) 2000 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000 Markus Friedl. All rights reserved.
4 * Copyright (c) 2005,2006 Damien Miller. All rights reserved. 4 * Copyright (c) 2005,2006 Damien Miller. All rights reserved.
@@ -35,6 +35,7 @@
35#include <netinet/in.h> 35#include <netinet/in.h>
36#include <netinet/tcp.h> 36#include <netinet/tcp.h>
37 37
38#include <errno.h>
38#include <fcntl.h> 39#include <fcntl.h>
39#ifdef HAVE_PATHS_H 40#ifdef HAVE_PATHS_H
40# include <paths.h> 41# include <paths.h>
diff --git a/monitor.c b/monitor.c
index b06cecf7d..a5263d746 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: monitor.c,v 1.80 2006/07/09 15:15:10 stevesk Exp $ */ 1/* $OpenBSD: monitor.c,v 1.81 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Copyright 2002 Niels Provos <provos@citi.umich.edu> 3 * Copyright 2002 Niels Provos <provos@citi.umich.edu>
4 * Copyright 2002 Markus Friedl <markus@openbsd.org> 4 * Copyright 2002 Markus Friedl <markus@openbsd.org>
@@ -31,6 +31,7 @@
31#include <sys/socket.h> 31#include <sys/socket.h>
32#include <sys/wait.h> 32#include <sys/wait.h>
33 33
34#include <errno.h>
34#include <fcntl.h> 35#include <fcntl.h>
35#ifdef HAVE_PATHS_H 36#ifdef HAVE_PATHS_H
36#include <paths.h> 37#include <paths.h>
diff --git a/monitor_fdpass.c b/monitor_fdpass.c
index 546f7010f..9d319ac1a 100644
--- a/monitor_fdpass.c
+++ b/monitor_fdpass.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: monitor_fdpass.c,v 1.9 2006/07/08 21:47:12 stevesk Exp $ */ 1/* $OpenBSD: monitor_fdpass.c,v 1.10 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Copyright 2001 Niels Provos <provos@citi.umich.edu> 3 * Copyright 2001 Niels Provos <provos@citi.umich.edu>
4 * All rights reserved. 4 * All rights reserved.
@@ -30,6 +30,8 @@
30#include <sys/socket.h> 30#include <sys/socket.h>
31#include <sys/uio.h> 31#include <sys/uio.h>
32 32
33#include <errno.h>
34
33#include "log.h" 35#include "log.h"
34#include "monitor_fdpass.h" 36#include "monitor_fdpass.h"
35 37
diff --git a/monitor_mm.c b/monitor_mm.c
index 222751628..dc0dbda76 100644
--- a/monitor_mm.c
+++ b/monitor_mm.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: monitor_mm.c,v 1.11 2006/03/25 13:17:02 djm Exp $ */ 1/* $OpenBSD: monitor_mm.c,v 1.12 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Copyright 2002 Niels Provos <provos@citi.umich.edu> 3 * Copyright 2002 Niels Provos <provos@citi.umich.edu>
4 * All rights reserved. 4 * All rights reserved.
@@ -26,6 +26,8 @@
26 26
27#include "includes.h" 27#include "includes.h"
28 28
29#include <errno.h>
30
29#ifdef HAVE_SYS_MMAN_H 31#ifdef HAVE_SYS_MMAN_H
30#include <sys/mman.h> 32#include <sys/mman.h>
31#endif 33#endif
diff --git a/monitor_wrap.c b/monitor_wrap.c
index 22b1fe854..9ec60b6af 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: monitor_wrap.c,v 1.46 2006/07/06 16:03:53 stevesk Exp $ */ 1/* $OpenBSD: monitor_wrap.c,v 1.47 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Copyright 2002 Niels Provos <provos@citi.umich.edu> 3 * Copyright 2002 Niels Provos <provos@citi.umich.edu>
4 * Copyright 2002 Markus Friedl <markus@openbsd.org> 4 * Copyright 2002 Markus Friedl <markus@openbsd.org>
@@ -32,6 +32,7 @@
32#include <openssl/bn.h> 32#include <openssl/bn.h>
33#include <openssl/dh.h> 33#include <openssl/dh.h>
34 34
35#include <errno.h>
35#include <pwd.h> 36#include <pwd.h>
36 37
37#include "ssh.h" 38#include "ssh.h"
diff --git a/msg.c b/msg.c
index fb08df548..4344a1312 100644
--- a/msg.c
+++ b/msg.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: msg.c,v 1.11 2006/03/30 09:58:15 djm Exp $ */ 1/* $OpenBSD: msg.c,v 1.12 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Copyright (c) 2002 Markus Friedl. All rights reserved. 3 * Copyright (c) 2002 Markus Friedl. All rights reserved.
4 * 4 *
@@ -24,6 +24,8 @@
24 */ 24 */
25#include "includes.h" 25#include "includes.h"
26 26
27#include <errno.h>
28
27#include "buffer.h" 29#include "buffer.h"
28#include "log.h" 30#include "log.h"
29#include "atomicio.h" 31#include "atomicio.h"
diff --git a/nchan.c b/nchan.c
index 58b0e98d5..43816a65b 100644
--- a/nchan.c
+++ b/nchan.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: nchan.c,v 1.54 2006/07/08 21:47:12 stevesk Exp $ */ 1/* $OpenBSD: nchan.c,v 1.55 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved. 3 * Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved.
4 * 4 *
@@ -28,6 +28,8 @@
28#include <sys/types.h> 28#include <sys/types.h>
29#include <sys/socket.h> 29#include <sys/socket.h>
30 30
31#include <errno.h>
32
31#include "ssh1.h" 33#include "ssh1.h"
32#include "ssh2.h" 34#include "ssh2.h"
33#include "buffer.h" 35#include "buffer.h"
diff --git a/packet.c b/packet.c
index b4f3aea14..e153a7c1b 100644
--- a/packet.c
+++ b/packet.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: packet.c,v 1.134 2006/07/10 16:37:36 stevesk Exp $ */ 1/* $OpenBSD: packet.c,v 1.135 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -47,6 +47,7 @@
47#include <netinet/in.h> 47#include <netinet/in.h>
48#include <netinet/ip.h> 48#include <netinet/ip.h>
49 49
50#include <errno.h>
50#include <stdarg.h> 51#include <stdarg.h>
51 52
52#include "xmalloc.h" 53#include "xmalloc.h"
diff --git a/progressmeter.c b/progressmeter.c
index d145a724a..98a30e11b 100644
--- a/progressmeter.c
+++ b/progressmeter.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: progressmeter.c,v 1.29 2006/03/25 13:17:02 djm Exp $ */ 1/* $OpenBSD: progressmeter.c,v 1.30 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Copyright (c) 2003 Nils Nordman. All rights reserved. 3 * Copyright (c) 2003 Nils Nordman. All rights reserved.
4 * 4 *
@@ -27,6 +27,7 @@
27 27
28#include <sys/ioctl.h> 28#include <sys/ioctl.h>
29 29
30#include <errno.h>
30#include <signal.h> 31#include <signal.h>
31 32
32#include "progressmeter.h" 33#include "progressmeter.h"
diff --git a/readconf.c b/readconf.c
index d25f93012..d2e172303 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: readconf.c,v 1.153 2006/07/11 18:50:48 markus Exp $ */ 1/* $OpenBSD: readconf.c,v 1.154 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -21,6 +21,7 @@
21#include <netinet/in.h> 21#include <netinet/in.h>
22 22
23#include <ctype.h> 23#include <ctype.h>
24#include <errno.h>
24 25
25#include "ssh.h" 26#include "ssh.h"
26#include "xmalloc.h" 27#include "xmalloc.h"
diff --git a/readpass.c b/readpass.c
index 0da75ac11..63197c915 100644
--- a/readpass.c
+++ b/readpass.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: readpass.c,v 1.41 2006/07/10 16:37:36 stevesk Exp $ */ 1/* $OpenBSD: readpass.c,v 1.42 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Copyright (c) 2001 Markus Friedl. All rights reserved. 3 * Copyright (c) 2001 Markus Friedl. All rights reserved.
4 * 4 *
@@ -28,6 +28,7 @@
28#include <sys/types.h> 28#include <sys/types.h>
29#include <sys/wait.h> 29#include <sys/wait.h>
30 30
31#include <errno.h>
31#include <fcntl.h> 32#include <fcntl.h>
32#ifdef HAVE_PATHS_H 33#ifdef HAVE_PATHS_H
33# include <paths.h> 34# include <paths.h>
diff --git a/scp.c b/scp.c
index c15fbbc2a..5e3a93ed5 100644
--- a/scp.c
+++ b/scp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: scp.c,v 1.146 2006/07/10 16:37:36 stevesk Exp $ */ 1/* $OpenBSD: scp.c,v 1.147 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * scp - secure remote copy. This is basically patched BSD rcp which 3 * scp - secure remote copy. This is basically patched BSD rcp which
4 * uses ssh to do the data transfer (instead of using rcmd). 4 * uses ssh to do the data transfer (instead of using rcmd).
@@ -81,6 +81,7 @@
81 81
82#include <ctype.h> 82#include <ctype.h>
83#include <dirent.h> 83#include <dirent.h>
84#include <errno.h>
84#include <fcntl.h> 85#include <fcntl.h>
85#include <pwd.h> 86#include <pwd.h>
86#include <signal.h> 87#include <signal.h>
diff --git a/serverloop.c b/serverloop.c
index 09063ab8c..83138aec2 100644
--- a/serverloop.c
+++ b/serverloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: serverloop.c,v 1.138 2006/07/09 15:15:11 stevesk Exp $ */ 1/* $OpenBSD: serverloop.c,v 1.139 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -43,6 +43,7 @@
43 43
44#include <netinet/in.h> 44#include <netinet/in.h>
45 45
46#include <errno.h>
46#include <fcntl.h> 47#include <fcntl.h>
47#include <pwd.h> 48#include <pwd.h>
48#include <signal.h> 49#include <signal.h>
diff --git a/session.c b/session.c
index 33be91545..5441a4762 100644
--- a/session.c
+++ b/session.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: session.c,v 1.208 2006/07/11 18:50:48 markus Exp $ */ 1/* $OpenBSD: session.c,v 1.209 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved 4 * All rights reserved
@@ -43,6 +43,7 @@
43#include <sys/wait.h> 43#include <sys/wait.h>
44#include <sys/un.h> 44#include <sys/un.h>
45 45
46#include <errno.h>
46#include <grp.h> 47#include <grp.h>
47#ifdef HAVE_PATHS_H 48#ifdef HAVE_PATHS_H
48#include <paths.h> 49#include <paths.h>
diff --git a/sftp-client.c b/sftp-client.c
index e10361e93..8fe0c0fe5 100644
--- a/sftp-client.c
+++ b/sftp-client.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp-client.c,v 1.66 2006/07/09 15:15:11 stevesk Exp $ */ 1/* $OpenBSD: sftp-client.c,v 1.67 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> 3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
4 * 4 *
@@ -27,6 +27,7 @@
27# include <sys/stat.h> 27# include <sys/stat.h>
28#endif 28#endif
29 29
30#include <errno.h>
30#include <fcntl.h> 31#include <fcntl.h>
31#include <signal.h> 32#include <signal.h>
32 33
diff --git a/sftp-server.c b/sftp-server.c
index e7193859e..29503246e 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp-server.c,v 1.61 2006/07/10 11:25:53 djm Exp $ */ 1/* $OpenBSD: sftp-server.c,v 1.62 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Copyright (c) 2000-2004 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000-2004 Markus Friedl. All rights reserved.
4 * 4 *
@@ -20,6 +20,7 @@
20#include <sys/stat.h> 20#include <sys/stat.h>
21 21
22#include <dirent.h> 22#include <dirent.h>
23#include <errno.h>
23#include <fcntl.h> 24#include <fcntl.h>
24#include <pwd.h> 25#include <pwd.h>
25 26
diff --git a/sftp.c b/sftp.c
index 27099ef06..649f08e5d 100644
--- a/sftp.c
+++ b/sftp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp.c,v 1.84 2006/07/10 16:01:57 stevesk Exp $ */ 1/* $OpenBSD: sftp.c,v 1.85 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> 3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
4 * 4 *
@@ -25,6 +25,8 @@
25#include <sys/socket.h> 25#include <sys/socket.h>
26#include <sys/wait.h> 26#include <sys/wait.h>
27 27
28#include <errno.h>
29
28#ifdef HAVE_PATHS_H 30#ifdef HAVE_PATHS_H
29# include <paths.h> 31# include <paths.h>
30#endif 32#endif
diff --git a/ssh-agent.c b/ssh-agent.c
index 57c7380f3..4421fa424 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-agent.c,v 1.142 2006/07/09 15:15:11 stevesk Exp $ */ 1/* $OpenBSD: ssh-agent.c,v 1.143 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -45,6 +45,7 @@
45#include "openbsd-compat/sys-queue.h" 45#include "openbsd-compat/sys-queue.h"
46#include <sys/resource.h> 46#include <sys/resource.h>
47 47
48#include <errno.h>
48#include <fcntl.h> 49#include <fcntl.h>
49#ifdef HAVE_PATHS_H 50#ifdef HAVE_PATHS_H
50# include <paths.h> 51# include <paths.h>
diff --git a/ssh-keygen.c b/ssh-keygen.c
index 4e42d0cfc..1c506059c 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-keygen.c,v 1.147 2006/07/09 15:15:11 stevesk Exp $ */ 1/* $OpenBSD: ssh-keygen.c,v 1.148 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -21,6 +21,7 @@
21#include <openssl/evp.h> 21#include <openssl/evp.h>
22#include <openssl/pem.h> 22#include <openssl/pem.h>
23 23
24#include <errno.h>
24#include <fcntl.h> 25#include <fcntl.h>
25#ifdef HAVE_PATHS_H 26#ifdef HAVE_PATHS_H
26# include <paths.h> 27# include <paths.h>
diff --git a/sshconnect.c b/sshconnect.c
index f8450eadf..c9d6221d8 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshconnect.c,v 1.189 2006/07/10 12:46:51 dtucker Exp $ */ 1/* $OpenBSD: sshconnect.c,v 1.190 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -23,6 +23,7 @@
23#include <netinet/in.h> 23#include <netinet/in.h>
24 24
25#include <ctype.h> 25#include <ctype.h>
26#include <errno.h>
26#ifdef HAVE_PATHS_H 27#ifdef HAVE_PATHS_H
27#include <paths.h> 28#include <paths.h>
28#endif 29#endif
diff --git a/sshconnect2.c b/sshconnect2.c
index 4f96dcfc4..04ea8dfc1 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshconnect2.c,v 1.155 2006/06/08 14:45:49 markus Exp $ */ 1/* $OpenBSD: sshconnect2.c,v 1.156 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Copyright (c) 2000 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000 Markus Friedl. All rights reserved.
4 * 4 *
@@ -29,6 +29,8 @@
29#include <sys/wait.h> 29#include <sys/wait.h>
30#include <sys/stat.h> 30#include <sys/stat.h>
31 31
32#include <errno.h>
33
32#include "openbsd-compat/sys-queue.h" 34#include "openbsd-compat/sys-queue.h"
33 35
34#include "ssh.h" 36#include "ssh.h"
diff --git a/sshd.c b/sshd.c
index 602116edf..f3fe9d184 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshd.c,v 1.335 2006/07/09 15:15:11 stevesk Exp $ */ 1/* $OpenBSD: sshd.c,v 1.336 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -52,6 +52,7 @@
52#include <sys/socket.h> 52#include <sys/socket.h>
53#include <sys/wait.h> 53#include <sys/wait.h>
54 54
55#include <errno.h>
55#include <fcntl.h> 56#include <fcntl.h>
56#ifdef HAVE_PATHS_H 57#ifdef HAVE_PATHS_H
57#include <paths.h> 58#include <paths.h>
diff --git a/sshlogin.c b/sshlogin.c
index 9b5ce1fde..808ad605e 100644
--- a/sshlogin.c
+++ b/sshlogin.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshlogin.c,v 1.18 2006/07/09 15:15:11 stevesk Exp $ */ 1/* $OpenBSD: sshlogin.c,v 1.19 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -41,6 +41,7 @@
41 41
42#include "includes.h" 42#include "includes.h"
43 43
44#include <errno.h>
44#include <fcntl.h> 45#include <fcntl.h>
45 46
46#include "loginrec.h" 47#include "loginrec.h"
diff --git a/sshpty.c b/sshpty.c
index 7f4e8bc16..10dae0328 100644
--- a/sshpty.c
+++ b/sshpty.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshpty.c,v 1.22 2006/07/09 15:15:11 stevesk Exp $ */ 1/* $OpenBSD: sshpty.c,v 1.23 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -19,6 +19,7 @@
19#include <sys/stat.h> 19#include <sys/stat.h>
20#include <signal.h> 20#include <signal.h>
21 21
22#include <errno.h>
22#include <fcntl.h> 23#include <fcntl.h>
23#include <grp.h> 24#include <grp.h>
24#ifdef HAVE_PATHS_H 25#ifdef HAVE_PATHS_H
diff --git a/ttymodes.c b/ttymodes.c
index 92fecb415..b46305430 100644
--- a/ttymodes.c
+++ b/ttymodes.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ttymodes.c,v 1.23 2006/03/25 13:17:03 djm Exp $ */ 1/* $OpenBSD: ttymodes.c,v 1.24 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -45,6 +45,7 @@
45 45
46#include "includes.h" 46#include "includes.h"
47 47
48#include <errno.h>
48#include <termios.h> 49#include <termios.h>
49 50
50#include "packet.h" 51#include "packet.h"
diff --git a/uidswap.c b/uidswap.c
index 2ac5d7f91..e97cd7059 100644
--- a/uidswap.c
+++ b/uidswap.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: uidswap.c,v 1.30 2006/07/06 16:03:53 stevesk Exp $ */ 1/* $OpenBSD: uidswap.c,v 1.31 2006/07/11 20:07:25 stevesk Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -16,6 +16,7 @@
16 16
17#include <sys/types.h> 17#include <sys/types.h>
18 18
19#include <errno.h>
19#include <pwd.h> 20#include <pwd.h>
20 21
21#include <grp.h> 22#include <grp.h>