After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 481025 - Wrong error when trying to extract a CD to a directory you do not have permission to write to
Wrong error when trying to extract a CD to a directory you do not have permis...
Status: VERIFIED FIXED
Product: sound-juicer
Classification: Applications
Component: interface
git master
Other All
: High critical
: ---
Assigned To: Sound Juicer Maintainers
Sound Juicer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-09-27 17:04 UTC by William Lachance
Modified: 2014-03-24 16:38 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
Patch to make make_directory_with_parents_for_uri work as intended (373 bytes, patch)
2007-09-27 17:08 UTC, William Lachance
committed Details | Review

Description William Lachance 2007-09-27 17:04:18 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:
Comment 1 William Lachance 2007-09-27 17:06:28 UTC
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.
Comment 2 William Lachance 2007-09-27 17:08:17 UTC
Created attachment 96301 [details] [review]
Patch to make make_directory_with_parents_for_uri work as intended
Comment 3 Ross Burton 2007-09-27 20:45:06 UTC
Committed, thanks!