summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-11-23 11:24:32 +1100
committerDamien Miller <djm@mindrot.org>1999-11-23 11:24:32 +1100
commit3744b5191822525a69861c1bc035cf955be196a1 (patch)
tree6bfe45789d09f666ba68520dc3bd5ed83f8665cb
parent294df785b8f67a5890d1e49ba883d530cdfb534c (diff)
- Numerous little Solaris fixes
-rw-r--r--ChangeLog3
-rw-r--r--acconfig.h16
-rw-r--r--configure.in2
-rw-r--r--ssh-add.c4
-rw-r--r--sshd.c6
5 files changed, 19 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 819549bc5..953072fc8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,8 @@
119991123 119991123
2 - Added SuSE package files from Chris Saia <csaia@wtower.com> 2 - Added SuSE package files from Chris Saia <csaia@wtower.com>
3 - Restructured package-related files under packages/ 3 - Restructured package-related files under packages/*
4 - Added generic PAM config 4 - Added generic PAM config
5 - Numerous little Solaris fixes
5 6
619991122 719991122
7 - Make <enter> close gnome-ssh-askpass (Debian bug #50299) 8 - Make <enter> close gnome-ssh-askpass (Debian bug #50299)
diff --git a/acconfig.h b/acconfig.h
index 6459c6371..86ce003aa 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -68,17 +68,25 @@
68 68
69/* ******************* Shouldn't need to edit below this line ************** */ 69/* ******************* Shouldn't need to edit below this line ************** */
70 70
71# include <sys/types.h> /* For u_intXX_t */ 71#include <sys/types.h> /* For u_intXX_t */
72# include <sys/socket.h> /* For SHUT_XXXX */ 72#include <sys/socket.h> /* For SHUT_XXXX */
73 73
74#ifdef HAVE_PATHS_H 74#ifdef HAVE_PATHS_H
75# include <paths.h> /* For _PATH_XXX */ 75# include <paths.h> /* For _PATH_XXX */
76#endif 76#endif
77 77
78#ifdef HAVE_UTMP_H
79# include <utmp.h> /* For _PATH_XXX */
80#endif
81
78#ifdef HAVE_SYS_TIME_H 82#ifdef HAVE_SYS_TIME_H
79# include <sys/time.h> /* For timersub */ 83# include <sys/time.h> /* For timersub */
80#endif 84#endif
81 85
86#ifdef HAVE_MAILLOCK_H
87#include <maillock.h>
88#endif
89
82#ifndef SHUT_RDWR 90#ifndef SHUT_RDWR
83enum 91enum
84{ 92{
@@ -176,6 +184,10 @@ enum
176# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin:" 184# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin:"
177#endif 185#endif
178 186
187#ifndef _PATH_DEVNULL
188# define _PATH_DEVNULL "/dev/null"
189#endif
190
179#ifndef _PATH_MAILDIR 191#ifndef _PATH_MAILDIR
180# ifdef MAILDIR 192# ifdef MAILDIR
181# define _PATH_MAILDIR MAILDIR 193# define _PATH_MAILDIR MAILDIR
diff --git a/configure.in b/configure.in
index 709e289b0..73635272a 100644
--- a/configure.in
+++ b/configure.in
@@ -55,7 +55,7 @@ AC_CHECK_LIB(dl, dlopen, , )
55AC_CHECK_LIB(pam, pam_authenticate, , ) 55AC_CHECK_LIB(pam, pam_authenticate, , )
56 56
57dnl Checks for header files. 57dnl Checks for header files.
58AC_CHECK_HEADERS(pty.h endian.h paths.h lastlog.h shadow.h netgroup.h maillock.h sys/select.h sys/time.h) 58AC_CHECK_HEADERS(pty.h endian.h paths.h lastlog.h shadow.h netgroup.h maillock.h utmp.h sys/select.h sys/time.h)
59 59
60dnl Checks for library functions. 60dnl Checks for library functions.
61AC_CHECK_FUNCS(openpty strlcpy strlcat mkdtemp arc4random setproctitle setlogin setenv) 61AC_CHECK_FUNCS(openpty strlcpy strlcat mkdtemp arc4random setproctitle setlogin setenv)
diff --git a/ssh-add.c b/ssh-add.c
index ba8a964b0..a95914417 100644
--- a/ssh-add.c
+++ b/ssh-add.c
@@ -14,7 +14,7 @@ Adds an identity to the authentication server, or removes an identity.
14*/ 14*/
15 15
16#include "includes.h" 16#include "includes.h"
17RCSID("$Id: ssh-add.c,v 1.11 1999/11/22 07:11:23 damien Exp $"); 17RCSID("$Id: ssh-add.c,v 1.12 1999/11/23 00:24:32 damien Exp $");
18 18
19#include "rsa.h" 19#include "rsa.h"
20#include "ssh.h" 20#include "ssh.h"
@@ -184,8 +184,6 @@ main(int argc, char **argv)
184 184
185 /* check if RSA support exists */ 185 /* check if RSA support exists */
186 if (rsa_alive() == 0) { 186 if (rsa_alive() == 0) {
187 extern char *__progname;
188
189 fprintf(stderr, 187 fprintf(stderr,
190 "%s: no RSA support in libssl and libcrypto. See ssl(8).\n", 188 "%s: no RSA support in libssl and libcrypto. See ssl(8).\n",
191 __progname); 189 __progname);
diff --git a/sshd.c b/sshd.c
index e87810767..5718eae94 100644
--- a/sshd.c
+++ b/sshd.c
@@ -18,7 +18,7 @@ agent connections.
18*/ 18*/
19 19
20#include "includes.h" 20#include "includes.h"
21RCSID("$Id: sshd.c,v 1.28 1999/11/22 03:27:24 damien Exp $"); 21RCSID("$Id: sshd.c,v 1.29 1999/11/23 00:24:32 damien Exp $");
22 22
23#include "xmalloc.h" 23#include "xmalloc.h"
24#include "rsa.h" 24#include "rsa.h"
@@ -32,10 +32,6 @@ RCSID("$Id: sshd.c,v 1.28 1999/11/22 03:27:24 damien Exp $");
32#include "uidswap.h" 32#include "uidswap.h"
33#include "compat.h" 33#include "compat.h"
34 34
35#ifdef HAVE_MAILLOCK_H
36# include <maillock.h>
37#endif
38
39#ifdef LIBWRAP 35#ifdef LIBWRAP
40#include <tcpd.h> 36#include <tcpd.h>
41#include <syslog.h> 37#include <syslog.h>