GNOME Bugzilla – Bug 481025
Wrong error when trying to extract a CD to a directory you do not have permission to write to
Last modified: 2014-03-24 16:38:12 UTC
Please describe the problem: When I try to extract a CD to a directory I do not have permission to write to, Sound Juicer complains "File not found", when it should say "Permission denied". Steps to reproduce: 1. mkdir -p $HOME/tmp/foo 2. chmod uga-w $HOME/tmp/foo 3. Set sound juicer to extract to $HOME/dir/foo 4. Attempt to extract Actual results: Get an error dialog, with the reason "File not found". Expected results: Get an error dialog, with the reason "Access denied" Does this happen every time? Yes. Other information:
The reason for this bug is a simple logic error in make_directory_with_parents_for_uri, which has been statically included in sound juicer's sj-util.c. Attaching a simple patch.
Created attachment 96301 [details] [review] Patch to make make_directory_with_parents_for_uri work as intended
Committed, thanks!