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

Access denied when input files are read-only #52

Closed
joshbarrass opened this issue Sep 18, 2023 · 1 comment
Closed

Access denied when input files are read-only #52

joshbarrass opened this issue Sep 18, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@joshbarrass
Copy link

Running v1.6.2 on Linux, I discovered that PSXPackager fails with an "access denied" error if it lacks write permission on the input files. I could understand the problem if it lacked write permissions on the output directory, but it should be able to function without write permissions on the inputs.

Steps:

  1. chmod -w game.cue game.bin
  2. ./psxpackager -i game.cue -o . -f "%MAINTITLE% [%MAINGAMEID%] (%REGION%)"

Expected Output:
PSXPackager runs without error.

Actual Results:

$ ./psxpackager -i game.cue -o . -f "%MAINTITLE% [%MAINGAMEID%] (%REGION%)"
PSXPackager v1.6.2 by RupertAvery

Input : game.cue
Output: .
Compression Level: 5

Processing started: 15:03:21
Processing game.cue

Access to the path 'game.bin' is denied.
Processing completed: 00h 00m 00s

This access denied error is fixed by executing chmod +w game.cue game.bin.

@RupertAvery
Copy link
Owner

Thanks for this.

I've found the bug, it's related to opening a file without specifying the mode.

@RupertAvery RupertAvery self-assigned this Oct 12, 2023
@RupertAvery RupertAvery added the bug Something isn't working label Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants