NetBSD Problem Report #43133
From www@NetBSD.org Tue Apr 6 12:19:23 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 74A4F63BA59
for <gnats-bugs@gnats.NetBSD.org>; Tue, 6 Apr 2010 12:19:23 +0000 (UTC)
Message-Id: <20100406121923.3F63863B8FE@www.NetBSD.org>
Date: Tue, 6 Apr 2010 12:19:23 +0000 (UTC)
From: ahoka@NetBSD.org
Reply-To: ahoka@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: Safari 4 doesn't list directories served by ftpd
X-Send-Pr-Version: www-1.0
>Number: 43133
>Category: bin
>Synopsis: Safari 4 doesn't list directories served by ftpd
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 06 12:20:00 +0000 2010
>Last-Modified: Tue Apr 06 14:10:08 +0000 2010
>Originator: Adam Hoka
>Release: NetBSD 5.0_STABLE
>Organization:
>Environment:
NetBSD morden.NetBSD.org 5.0_STABLE NetBSD 5.0_STABLE (NBFTP) #6: Tue Mar 23 07:30:19 UTC 2010 root@franklin.NetBSD.org:/home/netbsd/5/amd64/kern-compile/NBFTP amd64
>Description:
Safari 4.0.5 for Windows (7 in this case) doesn't list the directory contents on ftp.netbsd.org, probably a bug in ftpd (or in Safari, which needs to be worked around) as the mirrors work fine.
morden$ ident /usr/libexec/ftpd
/usr/libexec/ftpd:
$NetBSD: crt0.c,v 1.5 2007/09/27 10:51:18 dogcow Exp $
$NetBSD: cmds.c,v 1.27 2008/09/13 02:41:52 lukem Exp $
$NetBSD: conf.c,v 1.61 2008/06/09 00:33:39 lukem Exp $
$NetBSD: ftpd.c,v 1.189 2008/10/28 08:05:26 lukem Exp $
$NetBSD: skeleton.c,v 1.29 2008/07/18 14:25:37 drochner Exp $
$NetBSD: ftpcmd.y,v 1.88 2008/09/13 03:30:35 lukem Exp $
$NetBSD: logutmp.c,v 1.11 2008/06/09 01:00:23 lukem Exp $
$NetBSD: logwtmp.c,v 1.25 2006/09/23 16:03:50 xtraeme Exp $
$NetBSD: popen.c,v 1.34 2008/09/13 02:41:52 lukem Exp $
$NetBSD: ls.c,v 1.65 2008/09/25 23:44:05 lukem Exp $
$NetBSD: cmp.c,v 1.17 2003/08/07 09:05:14 agc Exp $
$NetBSD: print.c,v 1.42 2006/12/14 14:15:26 christos Exp $
$NetBSD: util.c,v 1.32 2007/06/06 13:21:28 soda Exp $
>How-To-Repeat:
>Fix:
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: bin/43133: Safari 4 doesn't list directories served by ftpd
Date: Tue, 6 Apr 2010 14:26:26 +0200
I can not reproduce the problem
Martin
From: Tobias Nygren <tnn@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: bin/43133: Safari 4 doesn't list directories served by ftpd
Date: Tue, 6 Apr 2010 14:59:32 +0200
On Tue, 6 Apr 2010 12:20:00 +0000 (UTC)
ahoka@NetBSD.org wrote:
> Safari 4.0.5 for Windows (7 in this case) doesn't list the directory contents on ftp.netbsd.org, probably a bug in ftpd (or in Safari, which needs to be worked around) as the mirrors work fine.
Just a thought: Safari might be IPv6-stupid. Does it work if you browse
to the IP-address instead of the DNS name?
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: bin/43133: Safari 4 doesn't list directories served by ftpd
Date: Tue, 6 Apr 2010 16:09:53 +0200
User error - I can reproduce it with ftp.netbsd.org, but it works with
ftp.de.netbsd.org. Tracing the answers shows that ftp.netbsd.org opens
a BINARY connection for /bin/ls, while ftp.de.netbsd.org uses a ASCII
connection.
Snips from the non-working trace:
15:53:30.344691 IP (tos 0x0, ttl 128, id 59936, offset 0, flags [DF], length: 46
) martins.aprisoft.de.2160 > morden.netbsd.org.ftp: P [tcp sum ok] 80:86(6) ack
3485 win 65535
E.... @...U...o......p..a.Y4.NX.P...<...PASV
15:53:30.555908 IP (tos 0x10, ttl 57, id 49006, offset 0, flags [DF], length: 9
2) morden.netbsd.org.ftp > martins.aprisoft.de.2160: P [tcp sum ok] 3485:3537(52
) ack 86 win 4380
E..\.n@.9..2......o....p.NX.a.Y:P....;..227 Entering Passive Mode (204,152,190,1
5,249,150)
15:53:30.558349 IP (tos 0x0, ttl 128, id 59937, offset 0, flags [DF], length: 48
) martins.aprisoft.de.2161 > morden.netbsd.org.63894: S [tcp sum ok] 3469442741:
3469442741(0) win 65535 <mss 1460,nop,nop,sackOK>
E..0.!@...U...o......q....~.....p...x...........
15:53:30.558350 IP (tos 0x0, ttl 128, id 59938, offset 0, flags [DF], length: 46
) martins.aprisoft.de.2160 > morden.netbsd.org.ftp: P [tcp sum ok] 86:92(6) ack
3537 win 65483
E...."@...U...o......p..a.Y:.NX@P...@...LIST
15:53:30.770279 IP (tos 0x0, ttl 57, id 0, offset 0, flags [DF], length: 48) mo
rden.netbsd.org.63894 > martins.aprisoft.de.2161: S [tcp sum ok] 261911488:26191
1488(0) ack 3469442742 win 32768 <mss 1452,sackOK,nop,nop>
E..0..@.9.........o....q..s...~.p...uE..........
15:53:30.772007 IP (tos 0x0, ttl 128, id 59939, offset 0, flags [DF], length: 40
) martins.aprisoft.de.2161 > morden.netbsd.org.63894: . [tcp sum ok] 1:1(0) ack
1 win 65535
E..(.#@...U...o......q....~...s.P...".........
15:53:30.960847 IP (tos 0x10, ttl 57, id 0, offset 0, flags [DF], length: 40) m
orden.netbsd.org.ftp > martins.aprisoft.de.2160: . [tcp sum ok] 3537:3537(0) ack
92 win 4380
E..(..@.9.........o....p.NX@a.Y@P.......
15:53:30.982998 IP (tos 0x10, ttl 57, id 49816, offset 0, flags [DF], length: 9
6) morden.netbsd.org.ftp > martins.aprisoft.de.2160: P [tcp sum ok] 3537:3593(56
) ack 92 win 4380
E..`..@.9.........o....p.NX@a.Y@P.......150 Opening BINARY mode data connection
15:53:30.984805 IP (tos 0x0, ttl 57, id 49817, offset 0, flags [DF], length: 10
64) morden.netbsd.org.63894 > martins.aprisoft.de.2161: P [tcp sum ok] 1:1025(10
24) ack 1 win 33580
E..(..@.9..K......o....q..s...~.P..,....total 72
lrwxrwxrwx 1 600 netbsd 21 Jul 6 2002 .message -> README.export-contro
l
drwx------ 2 2 netbsd 512 Nov 3 2008 .snapshot
drwxrwxr-x 54 611 611 1024 Dec 16 2007 NetBSD-4.0
drwxr-xr-x 54 611 netbsd 1024 Oct 8 2008 NetBSD-4.0.1
drwxr-xr-x 56 611 611 1024 Apr 28 2009 NetBSD-5.0
drwxr-xr-x 56 611 611 1536 Jul 30 2009 NetBSD-5.0.1
drwxr-xr-x 57 611 611 1536 Feb 7 03:06 NetBSD-5.0.2
...
And from the working one:
16:05:05.641086 IP (tos 0x0, ttl 128, id 62692, offset 0, flags [DF], length: 46
) martins.aprisoft.de.2186 > ftp.rrze.uni-erlangen.de.ftp: P [tcp sum ok] 11:17(
6) ack 29 win 64322
E.....@...E...o..........6f7...jP..B+...PASV
16:05:05.693490 IP (tos 0x0, ttl 50, id 45369, offset 0, flags [DF], length: 92
) ftp.rrze.uni-erlangen.de.ftp > martins.aprisoft.de.2186: P [tcp sum ok] 29:81(
52) ack 17 win 49368
E..\.9@.2.........o........j.6f=P...Y...227 Entering Passive Mode (131,188,12,21
2,234,90).
16:05:05.695000 IP (tos 0x0, ttl 128, id 62693, offset 0, flags [DF], length: 48
) martins.aprisoft.de.2188 > ftp.rrze.uni-erlangen.de.59994: S [tcp sum ok] 3475
892063:3475892063(0) win 65535 <mss 1460,nop,nop,sackOK>
E..0..@...E...o........Z.-._....p...............
16:05:05.695002 IP (tos 0x0, ttl 128, id 62694, offset 0, flags [DF], length: 46
) martins.aprisoft.de.2186 > ftp.rrze.uni-erlangen.de.ftp: P [tcp sum ok] 17:23(
6) ack 81 win 64270
E.....@...E...o..........6f=....P.../...LIST
16:05:05.746981 IP (tos 0x0, ttl 54, id 45370, offset 0, flags [DF], length: 48
) ftp.rrze.uni-erlangen.de.59994 > martins.aprisoft.de.2188: S [tcp sum ok] 8679
23564:867923564(0) ack 3475892064 win 49368 <mss 1452,nop,nop,sackOK>
E..0.:@.6.........o..Z..3.vl.-.`p...............
16:05:05.748913 IP (tos 0x0, ttl 128, id 62695, offset 0, flags [DF], length: 40
) martins.aprisoft.de.2188 > ftp.rrze.uni-erlangen.de.59994: . [tcp sum ok] 1:1(
0) ack 1 win 65535
E..(..@...E...o........Z.-.`3.vmP....c........
16:05:05.805060 IP (tos 0x0, ttl 50, id 45371, offset 0, flags [DF], length: 94
) ftp.rrze.uni-erlangen.de.ftp > martins.aprisoft.de.2186: P [tcp sum ok] 81:135
(54) ack 23 win 49368
E..^.;@.2.........o..........6fCP...&...150 Opening ASCII mode data connection f
or file list
16:05:05.926628 IP (tos 0x0, ttl 128, id 62696, offset 0, flags [DF], length: 40
) martins.aprisoft.de.2186 > ftp.rrze.uni-erlangen.de.ftp: . [tcp sum ok] 23:23(
0) ack 135 win 64216
E..(..@...E...o..........6fC....P....=........
16:05:06.114422 IP (tos 0x0, ttl 54, id 45372, offset 0, flags [DF], length: 10
23) ftp.rrze.uni-erlangen.de.59994 > martins.aprisoft.de.2188: P [tcp sum ok] 1:
984(983) ack 1 win 49368
E....<@.6.........o..Z..3.vm.-.`P...M...lrwxrwxrwx 1 root bin 2
7 Mar 28 2007 20c3 -> .files/ftplinux/LOCAL/20c3/
lrwxrwxrwx 1 root bin 27 Mar 28 2007 21c3 -> .files/ftplinux/L
OCAL/21c3/
lrwxrwxrwx 1 root bin 30 Mar 28 2007 CPAN -> ../.mirrors/ftpsr
c/rsync.CPAN/
...
Martin
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.