Date: Fri, 18 Jan 2002 11:11:14 -0800 (PST) From: Mike Abbott <mike.abbott@cacheflow.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/34043: libfetch FTP upload is broken Message-ID: <200201181911.g0IJBEm01669@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 34043 >Category: misc >Synopsis: libfetch FTP upload is broken >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: Fri Jan 18 11:20:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Mike Abbott >Release: >Organization: CacheFlow, Inc. >Environment: >Description: Revision 1.72 to src/lib/libfetch/ftp.c broke FTP upload. _ftp_request() always passes O_RDONLY to _ftp_transfer() as the mode even with STOR or APPE requests. This causes _ftp_writefn() to fail because io->dir == O_RDONLY. In revision 1.71 the mode was O_WRONLY for STOR and APPE and O_RDONLY for everything else. >How-To-Repeat: >Fix: Make _ftp_request() pass mode O_WRONLY for STOR and APPE and O_RDONLY for all other requests. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201181911.g0IJBEm01669>