Commit Diff
- Commit:
3bc4554eba7282f924fce49268aefc4e5e25f12f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
- Message:
- use move from File::Copy instead of rename i was reminded that rename doesn't work across filesystems. `move' from File::Copy attempts to use rename and falls back to a copy+unlink, which is the thing we need.
- Actions:
- Patch | Tree
--- mkindex +++ mkindex @@ -6,6 +6,8 @@ use strict; use warnings; use v5.32; +use File::Copy; + use OpenBSD::Pledge; use OpenBSD::Unveil; @@ -79,7 +81,7 @@ sub fixfiles { say $pfh "</main>"; endpage($pfh); close($pfh); - rename $path, "$outdir/$path"; + move $path, "$outdir/$path"; } }