You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-cvs@httpd.apache.org by jo...@apache.org on 2003/09/26 11:44:02 UTC
cvs commit: httpd-apreq/c apache_request.c
joes 2003/09/26 02:44:02
Modified: c apache_request.c
Log:
Log strerror(errno) when tempfile creation fails.
Revision Changes Path
1.27 +5 -1 httpd-apreq/c/apache_request.c
Index: apache_request.c
===================================================================
RCS file: /home/cvs/httpd-apreq/c/apache_request.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- apache_request.c 12 Jul 2003 17:42:00 -0000 1.26
+++ apache_request.c 26 Sep 2003 09:44:02 -0000 1.27
@@ -56,6 +56,8 @@
* University of Illinois, Urbana-Champaign.
*/
+#include <errno.h>
+#include <string.h>
#include "apache_request.h"
#include "apache_multipart_buffer.h"
int fill_buffer(multipart_buffer *self); /* needed for mozilla hack */
@@ -491,7 +493,9 @@
}
if ( tries == 0 || (fp = ap_pfdopen(r->pool, fd, "w+" "b") ) == NULL ) {
- ap_log_rerror(REQ_ERROR, "[libapreq] could not create/open temp file");
+ ap_log_rerror(REQ_ERROR,
+ "[libapreq] could not create/open temp file: %s",
+ strerror(errno));
if ( fd >= 0 ) { remove(name); free(name); }
return NULL;
}