diff options
author | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2004-05-13 20:38:22 +0000 |
---|---|---|
committer | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2004-05-13 20:38:22 +0000 |
commit | c88aff80450c029322b1f9df553c45ec9be22e61 (patch) | |
tree | f503b6238e6c711864990c4a80343a1a311dbf42 | |
parent | 57caeccfb8d86bf1b25a93dd6ae1a800268d4a51 (diff) | |
download | libapr-c88aff80450c029322b1f9df553c45ec9be22e61.tar.gz |
* file_io/unix/copy.c (apr_file_transfer_contents, apr_file_copy,
apr_file_append): Pass APR_LARGEFILE when opening source and
destination files.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@65092 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | file_io/unix/copy.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/file_io/unix/copy.c b/file_io/unix/copy.c index 4f990e484..3fd27eb34 100644 --- a/file_io/unix/copy.c +++ b/file_io/unix/copy.c @@ -28,7 +28,8 @@ static apr_status_t apr_file_transfer_contents(const char *from_path, apr_fileperms_t perms; /* Open source file. */ - status = apr_file_open(&s, from_path, APR_READ, APR_OS_DEFAULT, pool); + status = apr_file_open(&s, from_path, APR_READ | APR_LARGEFILE, + APR_OS_DEFAULT, pool); if (status) return status; @@ -94,7 +95,8 @@ APR_DECLARE(apr_status_t) apr_file_copy(const char *from_path, apr_pool_t *pool) { return apr_file_transfer_contents(from_path, to_path, - (APR_WRITE | APR_CREATE | APR_TRUNCATE), + (APR_WRITE | APR_CREATE | APR_TRUNCATE + | APR_LARGEFILE), perms, pool); } @@ -105,7 +107,8 @@ APR_DECLARE(apr_status_t) apr_file_append(const char *from_path, apr_pool_t *pool) { return apr_file_transfer_contents(from_path, to_path, - (APR_WRITE | APR_CREATE | APR_APPEND), + (APR_WRITE | APR_CREATE | APR_APPEND + | APR_LARGEFILE), perms, pool); } |