- (dtucker) [configure.ac sftp.c openbsd-compat/openbsd-compat.h] Cater for

platforms that don't have multibyte character support (specifically,
    mblen).
This commit is contained in:
Darren Tucker 2013-06-06 08:30:20 +10:00
parent 408eaf3ab7
commit ae133d4b31
4 changed files with 16 additions and 4 deletions

View File

@ -46,6 +46,9 @@
- dtucker@cvs.openbsd.org 2013/06/05 22:00:28
[readconf.c]
plug another memleak. bz#1967, from Zhenbo Xu, detected by Melton, ok djm
- (dtucker) [configure.ac sftp.c openbsd-compat/openbsd-compat.h] Cater for
platforms that don't have multibyte character support (specifically,
mblen).
20130602
- (tim) [Makefile.in] Make Solaris, UnixWare, & OpenServer linkers happy

View File

@ -1,4 +1,4 @@
# $Id: configure.ac,v 1.533 2013/06/04 02:55:24 dtucker Exp $
# $Id: configure.ac,v 1.534 2013/06/05 22:30:21 dtucker Exp $
#
# Copyright (c) 1999-2004 Damien Miller
#
@ -15,7 +15,7 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org])
AC_REVISION($Revision: 1.533 $)
AC_REVISION($Revision: 1.534 $)
AC_CONFIG_SRCDIR([ssh.c])
AC_LANG([C])
@ -310,6 +310,7 @@ AC_CHECK_HEADERS([ \
ia.h \
iaf.h \
limits.h \
locale.h \
login.h \
maillock.h \
ndir.h \
@ -1563,6 +1564,7 @@ AC_CHECK_FUNCS([ \
inet_ntop \
innetgr \
login_getcapbool \
mblen \
md5_crypt \
memmove \
mkdtemp \

View File

@ -1,4 +1,4 @@
/* $Id: openbsd-compat.h,v 1.57 2013/05/16 10:47:32 dtucker Exp $ */
/* $Id: openbsd-compat.h,v 1.58 2013/06/05 22:30:21 dtucker Exp $ */
/*
* Copyright (c) 1999-2003 Damien Miller. All rights reserved.
@ -207,6 +207,11 @@ unsigned long long strtoull(const char *, char **, int);
long long strtonum(const char *, long long, long long, const char **);
#endif
/* multibyte character support */
#ifndef HAVE_MBLEN
# define mblen(x, y) 1
#endif
#if !defined(HAVE_VASPRINTF) || !defined(HAVE_VSNPRINTF)
# include <stdarg.h>
#endif

4
sftp.c
View File

@ -38,7 +38,9 @@
#ifdef HAVE_LIBGEN_H
#include <libgen.h>
#endif
#include <locale.h>
#ifdef HAVE_LOCALE_H
# include <locale.h>
#endif
#ifdef USE_LIBEDIT
#include <histedit.h>
#else