mirror of git://anongit.mindrot.org/openssh.git
- (djm) Fix up POSIX saved uid support. Report from Mark Miller
<markm@swoon.net> - (djm) Search for -lcrypt on FreeBSD too
This commit is contained in:
parent
0c100870ac
commit
fbd884a80d
|
@ -1,3 +1,6 @@
|
|||
20010227
|
||||
- (djm)
|
||||
|
||||
20010226
|
||||
- (bal) Applied shutdown() patch for sftp.c by Corinna Vinschen
|
||||
<vinschen@redhat.com>
|
||||
|
@ -4141,4 +4144,4 @@
|
|||
- Wrote replacements for strlcpy and mkdtemp
|
||||
- Released 1.0pre1
|
||||
|
||||
$Id: ChangeLog,v 1.826 2001/02/26 20:38:53 mouring Exp $
|
||||
$Id: ChangeLog,v 1.827 2001/02/26 21:39:08 djm Exp $
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: acconfig.h,v 1.104 2001/02/26 09:49:59 djm Exp $ */
|
||||
/* $Id: acconfig.h,v 1.105 2001/02/26 21:39:07 djm Exp $ */
|
||||
|
||||
#ifndef _CONFIG_H
|
||||
#define _CONFIG_H
|
||||
|
@ -297,7 +297,7 @@
|
|||
#undef NO_X11_UNIX_SOCKETS
|
||||
|
||||
/* Needed for SCO and NeXT */
|
||||
#undef SAVED_IDS_WORK_WITH_SETEUID
|
||||
#undef BROKEN_SAVED_UIDS
|
||||
|
||||
@BOTTOM@
|
||||
|
||||
|
|
11
configure.in
11
configure.in
|
@ -1,4 +1,4 @@
|
|||
# $Id: configure.in,v 1.254 2001/02/26 09:49:59 djm Exp $
|
||||
# $Id: configure.in,v 1.255 2001/02/26 21:39:07 djm Exp $
|
||||
|
||||
AC_INIT(ssh.c)
|
||||
|
||||
|
@ -144,6 +144,9 @@ mips-sony-bsd|mips-sony-newsos4)
|
|||
*-*-netbsd*)
|
||||
need_dash_r=1
|
||||
;;
|
||||
*-*-freebsd*)
|
||||
check_for_libcrypt_later=1
|
||||
;;
|
||||
*-next-*)
|
||||
conf_lastlog_location="/usr/adm/lastlog"
|
||||
conf_utmp_location=/etc/utmp
|
||||
|
@ -152,7 +155,7 @@ mips-sony-bsd|mips-sony-newsos4)
|
|||
AC_DEFINE(HAVE_NEXT)
|
||||
AC_DEFINE(BROKEN_REALPATH)
|
||||
AC_DEFINE(USE_PIPES)
|
||||
AC_DEFINE(SAVED_IDS_WORK_WITH_SETEUID)
|
||||
AC_DEFINE(BROKEN_SAVED_UIDS)
|
||||
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
|
||||
CFLAGS="$CFLAGS"
|
||||
;;
|
||||
|
@ -239,7 +242,7 @@ mips-sony-bsd|mips-sony-newsos4)
|
|||
AC_DEFINE(HAVE_SCO_PROTECTED_PW)
|
||||
AC_DEFINE(DISABLE_SHADOW)
|
||||
AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
|
||||
AC_DEFINE(SAVED_IDS_WORK_WITH_SETEUID)
|
||||
AC_DEFINE(BROKEN_SAVED_UIDS)
|
||||
AC_CHECK_FUNCS(getluid setluid)
|
||||
;;
|
||||
*-*-sco3.2v5*)
|
||||
|
@ -254,7 +257,7 @@ mips-sony-bsd|mips-sony-newsos4)
|
|||
AC_DEFINE(HAVE_SCO_PROTECTED_PW)
|
||||
AC_DEFINE(DISABLE_SHADOW)
|
||||
AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
|
||||
AC_DEFINE(SAVED_IDS_WORK_WITH_SETEUID)
|
||||
AC_DEFINE(BROKEN_SAVED_UIDS)
|
||||
AC_CHECK_FUNCS(getluid setluid)
|
||||
;;
|
||||
*-dec-osf*)
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
#include "pathnames.h"
|
||||
#include "log.h"
|
||||
|
||||
RCSID("$Id: entropy.c,v 1.30 2001/02/26 09:49:59 djm Exp $");
|
||||
RCSID("$Id: entropy.c,v 1.31 2001/02/26 21:39:07 djm Exp $");
|
||||
|
||||
#ifndef offsetof
|
||||
# define offsetof(type, member) ((size_t) &((type *)0)->member)
|
||||
|
@ -63,6 +63,10 @@ RCSID("$Id: entropy.c,v 1.30 2001/02/26 09:49:59 djm Exp $");
|
|||
# define RUSAGE_CHILDREN 0
|
||||
#endif
|
||||
|
||||
#if defined(_POSIX_SAVED_IDS) && !defined(BROKEN_SAVED_UIDS)
|
||||
# define SAVED_IDS_WORK_WITH_SETEUID
|
||||
#endif
|
||||
|
||||
#if defined(EGD_SOCKET) || defined(RANDOM_POOL)
|
||||
|
||||
#ifdef EGD_SOCKET
|
||||
|
|
|
@ -26,13 +26,13 @@ RCSID("$OpenBSD: uidswap.c,v 1.13 2001/01/21 19:06:01 markus Exp $");
|
|||
* POSIX saved uids or not.
|
||||
*/
|
||||
|
||||
#ifdef _POSIX_SAVED_IDS
|
||||
#if defined(_POSIX_SAVED_IDS) && !defined(BROKEN_SAVED_UIDS)
|
||||
/* Lets assume that posix saved ids also work with seteuid, even though that
|
||||
is not part of the posix specification. */
|
||||
#define SAVED_IDS_WORK_WITH_SETEUID
|
||||
/* Saved effective uid. */
|
||||
static uid_t saved_euid = 0;
|
||||
#endif /* _POSIX_SAVED_IDS */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Temporarily changes to the given uid. If the effective user
|
||||
|
|
Loading…
Reference in New Issue