[issue1891] sftp utility crashes

Peter Avalos peter at theshell.com
Fri Nov 12 21:40:04 PST 2010


On Thu, Nov 11, 2010 at 02:28:40PM +0000, vasily postnicov (via DragonFly issue tracker) wrote:
> 
> vasily postnicov <shamaz.mazum at 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>.

--Peter
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00000.pgp
Type: application/octet-stream
Size: 198 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20101112/152d02fc/attachment-0017.obj>


More information about the Bugs mailing list