the file.
Submitted by: Thom May <thom@planetarytramp.net>
Reviewed by: Justin Erenkrantz
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95944
13f79535-47bb-0310-9956-
ffa450edef68
/* The temporary file has all the data, just copy it to the new location.
*/
-#if defined(OS2) || defined(WIN32)
- str = apr_psprintf(pool, "copy \"%s\" \"%s\"", tn, pwfilename);
-#else
- str = apr_psprintf(pool, "cp %s %s", tn, pwfilename);
-#endif
- system(str);
+ apr_file_copy(tn, pwfilename, APR_FILE_SOURCE_PERMS, pool);
apr_file_close(ftemp);
return 0;
}