curl-users
Re: Patch to use filename from Content-disposition header
From: Björn Stenberg <bjorn_at_haxx.se>
Date: Thu, 31 Dec 2009 00:09:40 +0100
Received on 2009-12-31
Date: Thu, 31 Dec 2009 00:09:40 +0100
Kamil Dudka wrote:
> The fopen() function should be called exactly once per one file.
fopen(3) cannot open a file for writing and fail if it exists, only open(2) can do that. Hence a separate check call is necessary if we want this feature to not overwrite existing files. I think that is a nice safety catch.
Thank you for the feedback. Here's an updated patch.
-- Björn
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
- text/plain attachment: content-disposition.patch2