[Bug 257960] mkimg: partition 1: No such file or directory when using a ":" in the file name
Date: Sun, 22 Feb 2026 07:07:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257960
Aaditya Singh <aadityavksingh@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aadityavksingh@gmail.com
--- Comment #4 from Aaditya Singh <aadityavksingh@gmail.com> ---
I have made a Github PR to try fixing this bug
[https://github.com/freebsd/freebsd-src/pull/2041]
It uses stat() to check if the entire string exists as a file. If so, use it
directly without splitting.
If the full string is not a valid file, fall back to splitting at the
right-most colon using strrchr().
--
You are receiving this mail because:
You are the assignee for the bug.