sftp seg faulting

Xin LI delphij at delphij.net
Mon Nov 9 21:44:33 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Cornejo wrote:
> Hi,
> 
> In recent builds of 9-CURRENT on amd64 platform I am getting seg
> faults that seem related to glob - same vintage works on x86.
> 
> Attempting ls of remote directory:
> 
> (gdb) run
> Starting program: /usr/bin/sftp white
> Connecting to white...
> Password:
[...]
> I'm either unlucky in tracing through glob or haven't been persistent
> enough - anyone have any idea what might be going on?

I am currently using a patch des@ sent to me (and also to this list)
which worked fine.

Cheers,
- --
Xin LI <delphij at delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!	       Live free or die
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (FreeBSD)

iEYEARECAAYFAkr4jS8ACgkQi+vbBBjt66C9rwCfY6HH8I4WzoOlgL4UQNSFKvrA
QfsAoIO0/IihgHEio/N8iHvRYFdgPtJh
=bBF5
-----END PGP SIGNATURE-----
-------------- next part --------------
Index: crypto/openssh/ssh_namespace.h
===================================================================
--- crypto/openssh/ssh_namespace.h	(revision 197801)
+++ crypto/openssh/ssh_namespace.h	(working copy)
@@ -223,6 +223,8 @@
 #define get_u32					ssh_get_u32
 #define get_u64					ssh_get_u64
 #define getrrsetbyname				ssh_getrrsetbyname
+#define glob					ssh_glob
+#define globfree				ssh_globfree
 #define host_hash				ssh_host_hash
 #define hostfile_read_key			ssh_hostfile_read_key
 #define hpdelim					ssh_hpdelim
Index: secure/lib/libssh/Makefile
===================================================================
--- secure/lib/libssh/Makefile	(revision 197801)
+++ secure/lib/libssh/Makefile	(working copy)
@@ -19,7 +19,7 @@
 # compiled directly into sshd instead.
 
 # Portability layer
-SRCS+=	bsd-misc.c fmt_scaled.c getrrsetbyname.c \
+SRCS+=	bsd-misc.c fmt_scaled.c getrrsetbyname.c glob.c \
 	openssl-compat.c port-tun.c strtonum.c vis.c xcrypt.c xmmap.c
 # FreeBSD additions
 SRCS+=	version.c


More information about the freebsd-current mailing list