Compare commits
7
Commits
V_8_6
...
V_3_7_1_P1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ade1cee573 | ||
|
|
92dc672aac | ||
|
|
9d14715146 | ||
|
|
04a1d8d67d | ||
|
|
5502e5895d | ||
|
|
315212b531 | ||
|
|
42978c7f28 |
@@ -1,3 +1,11 @@
|
||||
20030917
|
||||
- (djm) OpenBSD Sync
|
||||
- [email protected] 2003/09/16 21:02:40
|
||||
[buffer.c channels.c version.h]
|
||||
more malloc/fatal fixes; ok millert/deraadt; ghudson at MIT.EDU
|
||||
- (djm) Crank RPM spec versions
|
||||
- (djm) Release 3.7.1p1
|
||||
|
||||
20030916
|
||||
- (dtucker) [acconfig.h configure.ac defines.h session.c] Bug #252: Retrieve
|
||||
PATH (or SUPATH) and UMASK from /etc/default/login on platforms that have it
|
||||
@@ -7,6 +15,10 @@
|
||||
- [email protected] 2003/09/16 03:03:47
|
||||
[buffer.c]
|
||||
do not expand buffer before attempting to reallocate it; markus ok
|
||||
- (djm) Crank spec versions
|
||||
- (djm) Banish (safe) sprintf from auth-pam.c. Patch from bal
|
||||
- (tim) [configure.ac] Fix portability issues.
|
||||
- (djm) Release 3.7p1
|
||||
|
||||
20030914
|
||||
- (dtucker) [Makefile regress/Makefile] Fix portability issues preventing
|
||||
@@ -1103,4 +1115,4 @@
|
||||
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
|
||||
Report from [email protected], diagnosis from [email protected]
|
||||
|
||||
$Id: ChangeLog,v 1.2994 2003/09/16 03:31:03 mouring Exp $
|
||||
$Id: ChangeLog,v 1.2994.2.6 2003/09/16 21:35:09 djm Exp $
|
||||
|
||||
+11
-9
@@ -31,7 +31,7 @@
|
||||
|
||||
/* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */
|
||||
#include "includes.h"
|
||||
RCSID("$Id: auth-pam.c,v 1.72 2003/09/13 12:12:11 dtucker Exp $");
|
||||
RCSID("$Id: auth-pam.c,v 1.72.2.1 2003/09/16 06:00:52 djm Exp $");
|
||||
|
||||
#ifdef USE_PAM
|
||||
#include <security/pam_appl.h>
|
||||
@@ -672,17 +672,19 @@ do_pam_chauthtok(void)
|
||||
int
|
||||
do_pam_putenv(char *name, char *value)
|
||||
{
|
||||
char *compound;
|
||||
int ret = 1;
|
||||
|
||||
#ifdef HAVE_PAM_PUTENV
|
||||
compound = xmalloc(strlen(name)+strlen(value)+2);
|
||||
if (compound) {
|
||||
sprintf(compound,"%s=%s",name,value);
|
||||
ret = pam_putenv(sshpam_handle,compound);
|
||||
xfree(compound);
|
||||
}
|
||||
char *compound;
|
||||
size_t len;
|
||||
|
||||
len = strlen(name) + strlen(value) + 2;
|
||||
compound = xmalloc(len);
|
||||
|
||||
snprintf(compound, len, "%s=%s", name, value);
|
||||
ret = pam_putenv(sshpam_handle, compound);
|
||||
xfree(compound);
|
||||
#endif
|
||||
|
||||
return (ret);
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
RCSID("$OpenBSD: buffer.c,v 1.17 2003/09/16 03:03:47 deraadt Exp $");
|
||||
RCSID("$OpenBSD: buffer.c,v 1.18 2003/09/16 21:02:39 markus Exp $");
|
||||
|
||||
#include "xmalloc.h"
|
||||
#include "buffer.h"
|
||||
@@ -23,8 +23,11 @@ RCSID("$OpenBSD: buffer.c,v 1.17 2003/09/16 03:03:47 deraadt Exp $");
|
||||
void
|
||||
buffer_init(Buffer *buffer)
|
||||
{
|
||||
buffer->alloc = 4096;
|
||||
buffer->buf = xmalloc(buffer->alloc);
|
||||
const u_int len = 4096;
|
||||
|
||||
buffer->alloc = 0;
|
||||
buffer->buf = xmalloc(len);
|
||||
buffer->alloc = len;
|
||||
buffer->offset = 0;
|
||||
buffer->end = 0;
|
||||
}
|
||||
@@ -34,8 +37,10 @@ buffer_init(Buffer *buffer)
|
||||
void
|
||||
buffer_free(Buffer *buffer)
|
||||
{
|
||||
memset(buffer->buf, 0, buffer->alloc);
|
||||
xfree(buffer->buf);
|
||||
if (buffer->alloc > 0) {
|
||||
memset(buffer->buf, 0, buffer->alloc);
|
||||
xfree(buffer->buf);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
+4
-3
@@ -39,7 +39,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
RCSID("$OpenBSD: channels.c,v 1.194 2003/08/29 10:04:36 markus Exp $");
|
||||
RCSID("$OpenBSD: channels.c,v 1.195 2003/09/16 21:02:40 markus Exp $");
|
||||
|
||||
#include "ssh.h"
|
||||
#include "ssh1.h"
|
||||
@@ -229,12 +229,13 @@ channel_new(char *ctype, int type, int rfd, int wfd, int efd,
|
||||
if (found == -1) {
|
||||
/* There are no free slots. Take last+1 slot and expand the array. */
|
||||
found = channels_alloc;
|
||||
channels_alloc += 10;
|
||||
if (channels_alloc > 10000)
|
||||
fatal("channel_new: internal error: channels_alloc %d "
|
||||
"too big.", channels_alloc);
|
||||
channels = xrealloc(channels,
|
||||
(channels_alloc + 10) * sizeof(Channel *));
|
||||
channels_alloc += 10;
|
||||
debug2("channel: expanding %d", channels_alloc);
|
||||
channels = xrealloc(channels, channels_alloc * sizeof(Channel *));
|
||||
for (i = found; i < channels_alloc; i++)
|
||||
channels[i] = NULL;
|
||||
}
|
||||
|
||||
+4
-4
@@ -1,4 +1,4 @@
|
||||
# $Id: configure.ac,v 1.154 2003/09/16 01:52:19 dtucker Exp $
|
||||
# $Id: configure.ac,v 1.154.2.1 2003/09/16 05:48:15 tim Exp $
|
||||
|
||||
AC_INIT
|
||||
AC_CONFIG_SRCDIR([ssh.c])
|
||||
@@ -2205,7 +2205,7 @@ AC_ARG_WITH(default-path,
|
||||
--with-default-path=PATH has no effect on this system.
|
||||
Edit /etc/login.conf instead.])
|
||||
elif test "x$withval" != "xno" ; then
|
||||
if ! test -z "$external_path_file" ; then
|
||||
if test ! -z "$external_path_file" ; then
|
||||
AC_MSG_WARN([
|
||||
--with-default-path=PATH will only be used if PATH is not defined in
|
||||
$external_path_file .])
|
||||
@@ -2217,7 +2217,7 @@ $external_path_file .])
|
||||
[ if test "x$external_path_file" = "x/etc/login.conf" ; then
|
||||
AC_MSG_WARN([Make sure the path to scp is in /etc/login.conf])
|
||||
else
|
||||
if ! test -z "$external_path_file" ; then
|
||||
if test ! -z "$external_path_file" ; then
|
||||
AC_MSG_WARN([
|
||||
If PATH is defined in $external_path_file, ensure the path to scp is included,
|
||||
otherwise scp will not work.])
|
||||
@@ -2652,7 +2652,7 @@ echo " At runtime, sshd will use the path defined in $external_path_file"
|
||||
echo " Make sure the path to scp is present, otherwise scp will not work"
|
||||
else
|
||||
echo " sshd default user PATH: $I"
|
||||
if ! test -z "$external_path_file"; then
|
||||
if test ! -z "$external_path_file"; then
|
||||
echo " (If PATH is set in $external_path_file it will be used instead. If"
|
||||
echo " used, ensure the path to scp is present, otherwise scp will not work.)"
|
||||
fi
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
#old cvs stuff. please update before use. may be deprecated.
|
||||
%define use_stable 1
|
||||
%if %{use_stable}
|
||||
%define version 3.6.1p2
|
||||
%define version 3.7.1p1
|
||||
%define cvs %{nil}
|
||||
%define release 2
|
||||
%define release 1
|
||||
%else
|
||||
%define version 2.9.9p2
|
||||
%define cvs cvs20011009
|
||||
@@ -364,4 +364,4 @@ fi
|
||||
* Mon Jan 01 1998 ...
|
||||
Template Version: 1.31
|
||||
|
||||
$Id: openssh.spec,v 1.43 2003/04/29 13:22:40 djm Exp $
|
||||
$Id: openssh.spec,v 1.43.2.3 2003/09/16 21:35:10 djm Exp $
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
%define ver 3.6.1p2
|
||||
%define rel 3
|
||||
%define ver 3.7.1p1
|
||||
%define rel 1
|
||||
|
||||
# OpenSSH privilege separation requires a user & group ID
|
||||
%define sshd_uid 74
|
||||
@@ -84,7 +84,7 @@ BuildPreReq: /bin/login
|
||||
%if ! %{build6x}
|
||||
BuildPreReq: glibc-devel, pam
|
||||
%else
|
||||
BuildPreReq: db1-devel, /usr/include/security/pam_appl.h
|
||||
BuildPreReq: /usr/include/security/pam_appl.h
|
||||
%endif
|
||||
%if ! %{no_x11_askpass}
|
||||
BuildPreReq: XFree86-devel
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Summary: OpenSSH, a free Secure Shell (SSH) protocol implementation
|
||||
Name: openssh
|
||||
Version: 3.6.1p2
|
||||
Version: 3.7.1p1
|
||||
URL: http://www.openssh.com/
|
||||
Release: 1
|
||||
Source0: openssh-%{version}.tar.gz
|
||||
|
||||
Reference in New Issue
Block a user