Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UEFIFind fails to open input file when path is long on Windows #406

Open
platomav opened this issue Oct 27, 2024 · 0 comments
Open

UEFIFind fails to open input file when path is long on Windows #406

platomav opened this issue Oct 27, 2024 · 0 comments

Comments

@platomav
Copy link

Hello,

This ticket seems directly related to #363, but now the affected utility is UEFIFind and not UEFIExtract. Specifically, UEFIFind is not able to load a file when its path is "long" on Windows (MAX_PATH, UNC), failing with exit code 5 (U_FILE_OPEN).

C:\Users\plato\Desktop>UEFIFind.exe "C:\Users\plato\Desktop\test_test_test_test_test_test_test_test_test_test_test_test\pkg\MacBookProEFIUpdate_2.pkg_extracted\temp\Payload_gzip_cpio\Payload~_extracted\System\Library\CoreServices\Firmware Updates\MacBookProEFIUpdateTwo-2.8\MBP51_007E_06B_LOCKED.scap" body list 244942494F534924 || echo %errorlevel%
5

Test Path - Success

C:\Users\plato\Desktop\test_test\pkg\MacBookProEFIUpdate_2.pkg_extracted\temp\Payload_gzip_cpio\Payload~_extracted\System\Library\CoreServices\Firmware Updates\MacBookProEFIUpdateTwo-2.8\MBP51_007E_06B_LOCKED.scap

Test Path - Failure

C:\Users\plato\Desktop\test_test_test_test_test_test_test_test_test_test_test_test\pkg\MacBookProEFIUpdate_2.pkg_extracted\temp\Payload_gzip_cpio\Payload~_extracted\System\Library\CoreServices\Firmware Updates\MacBookProEFIUpdateTwo-2.8\MBP51_007E_06B_LOCKED.scap

test_long_path.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant