]> Kevux Git Server - fll/commit
Bugfix: The copy operation doesn't work properly with trailing slashes.
authorKevin Day <thekevinday@gmail.com>
Mon, 18 Jul 2022 03:36:55 +0000 (22:36 -0500)
committerKevin Day <thekevinday@gmail.com>
Mon, 18 Jul 2022 03:36:55 +0000 (22:36 -0500)
commite70631a5463f7dcb7ad70a0f92040c2d59ad947a
treefbcdf165b97efb2e7a705512388bb3d692255946
parent5b695876bd14aabc19b3eb8957b2a479fde710b3
Bugfix: The copy operation doesn't work properly with trailing slashes.

The generated path might not be valid when a trailing slash is supplied on the source or the destination.
Increase the static array size to accommodate at least 2 added separators.
Only add the separators if one does not already exist.

This does not attempt to clean up the code if there are multiple separators beyond the first.
(That is to say "copy a/// b///" will not become "copy a/ b/".)
level_3/fake/c/private-make-operate_process_type.c