From nobody@FreeBSD.org  Wed May  3 02:24:29 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id 5659937BB34
	for <freebsd-gnats-submit@FreeBSD.org>; 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
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: ftpd doesn't escape double quotes in PWD result
X-Send-Pr-Version: www-1.0

>Number:         18365
>Category:       misc
>Synopsis:       ftpd doesn't escape double quotes in PWD result
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    yar
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May  3 02:30:01 PDT 2000
>Closed-Date:    Mon Jul 29 13:18:48 PDT 2002
>Last-Modified:  Mon Jul 29 13:18:48 PDT 2002
>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:
State-Changed-From-To: open->patched 
State-Changed-By: yar 
State-Changed-When: Mon Jul 22 00:41:33 PDT 2002 
State-Changed-Why:  
Fixed in CURRENT.  MFC pending.  Thanks! 


Responsible-Changed-From-To: freebsd-bugs->yar 
Responsible-Changed-By: yar 
Responsible-Changed-When: Mon Jul 22 00:41:33 PDT 2002 
Responsible-Changed-Why:  
MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=18365 
State-Changed-From-To: patched->closed 
State-Changed-By: yar 
State-Changed-When: Mon Jul 29 13:18:04 PDT 2002 
State-Changed-Why:  
Fixed in -CURRENT & -STABLE, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=18365 
>Unformatted:
