]> Savannah Git Hosting - gnulib.git/commit
copy-file: Add functions for copying non-confidential files.
authorBruno Haible <bruno@clisp.org>
Sat, 24 Aug 2024 18:52:28 +0000 (20:52 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 24 Aug 2024 20:45:38 +0000 (22:45 +0200)
commit3fef5edc95b855a4ea3326926c69641b2fe205b3
tree58763924ebfbb24a664998c8f95ee3bba8991d7d
parente9655b05dc0b25d24457f9b8dd31a579d6867d83
copy-file: Add functions for copying non-confidential files.

Reported by Patrice Dumas <pertusus@free.fr> in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-08/msg00142.html>.

* lib/copy-file.h (copy_file_to, xcopy_file_to): New declarations.
* lib/copy-file.c (copy_file_internal): New function, extracted from
qcopy_file_preserving.
(qcopy_file_preserving): Invoke it.
(copy_file_to): New function.
(handle_error_code): New function, extracted from xcopy_file_preserving.
(xcopy_file_preserving): Invoke it.
(xcopy_file_to): New function.
ChangeLog
lib/copy-file.c
lib/copy-file.h