DragonFly BSD
DragonFly bugs List (threaded) for 2010-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [issue1891] sftp utility crashes

From: Peter Avalos <peter@xxxxxxxxxxxx>
Date: Fri, 12 Nov 2010 19:38:58 -1000
Mail-followup-to: bugs@crater.dragonflybsd.org

On Thu, Nov 11, 2010 at 02:28:40PM +0000, vasily postnicov (via DragonFly issue tracker) wrote:
> vasily postnicov <shamaz.mazum@gmail.com> added the comment:
> > Can you try replacing the first three members in glob_t from int
> to size_t then rebuild sftp and see if that helps?
> Thank you, it works!

Instead of messing around with that, can you please try the attached
patch?  This should make it use the system's <glob.h>.

diff --git a/secure/lib/libssh/config.h b/secure/lib/libssh/config.h
index 322afed..779f1cf 100644
--- a/secure/lib/libssh/config.h
+++ b/secure/lib/libssh/config.h
@@ -24,7 +24,7 @@
 /* #undef BROKEN_GETGROUPS */
 /* FreeBSD glob does not do what we need */
-#define BROKEN_GLOB 1
+/* #undef BROKEN_GLOB */
 /* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */
 /* #undef BROKEN_INET_NTOA */

Attachment: pgp00000.pgp
Description: PGP signature

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]