From 4525785587fa068faf1c38f5862ef9365ecac543 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Wed, 16 Sep 2026 19:12:58 +0100 Subject: [PATCH] * modules/dav/fs/repos.c (dav_fs_copymove_file): Log the pathname when opening the source or destination file fails. Suggested by: Bingyu Shen GitHub: PR #143 Co-Authored-By: Claude Opus 5 (1M context) --- modules/dav/fs/repos.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/dav/fs/repos.c b/modules/dav/fs/repos.c index e2b136e44dc..fc8a5a5f0b9 100644 --- a/modules/dav/fs/repos.c +++ b/modules/dav/fs/repos.c @@ -391,6 +391,8 @@ static dav_error * dav_fs_copymove_file( if ((status = apr_file_open(&inf, src, APR_READ | APR_BINARY, APR_OS_DEFAULT, p)) != APR_SUCCESS) { + ap_log_perror(APLOG_MARK, APLOG_ERR, status, p, APLOGNO() + "Could not open file %s for reading.", src); /* ### use something besides 500? */ return dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0, status, "Could not open file for reading"); @@ -402,6 +404,8 @@ static dav_error * dav_fs_copymove_file( if (status != APR_SUCCESS) { apr_file_close(inf); + ap_log_perror(APLOG_MARK, APLOG_ERR, status, p, APLOGNO() + "Could not open file %s for writing.", dst); return dav_new_error(p, MAP_IO2HTTP(status), 0, status, "Could not open file for writing"); }