From owner-freebsd-bugs Wed May 3 2:30: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5661D37B979 for ; Wed, 3 May 2000 02:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id CAA08217; Wed, 3 May 2000 02:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5659937BB34 for ; Wed, 3 May 2000 02:24:29 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id CAA07036; Wed, 3 May 2000 02:24:29 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Message-Id: <200005030924.CAA07036@freefall.freebsd.org> Date: Wed, 3 May 2000 02:24:29 -0700 (PDT) From: sandy@a2a00996.direct.bconnected.net To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/18365: ftpd doesn't escape double quotes in PWD result Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 18365 >Category: misc >Synopsis: ftpd doesn't escape double quotes in PWD result >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 3 02:30:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Sandy Rutherford >Release: FreeBSD 3.4 RELEASE >Organization: Pacific Institute for the Mathematical Sciences >Environment: FreeBSD szamoca.localnet 3.4-RELEASE FreeBSD 3.4-RELEASE #14: Sat Apr 15 01:45:46 PDT 2000 sandy@szamoca.localnet:/usr/src/sys/compile/SZAMOCA i386 >Description: If a directory name contains a `"' character, then ftpd should escape the `"' by doubling it to `""'. (See App. II in RFC 959.) It doesn't do this. If I CWD in FTP to a directory /home/sandy/f"f and type pwd, then ftpd should return 257 "/home/sandy/f""f" is current working directory according to App. II in RFC 959. The ftpd distributed with FreeBSD returns 257 "/home/sandy/f"f" is current working directory instead. >How-To-Repeat: >Fix: A straight-forward little function in ftpd.c is required to double `"' characters in the return string from getcwd(). >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message