Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44404 - cdemu .cue images can't be unloaded when loaded by normal users
Summary: cdemu .cue images can't be unloaded when loaded by normal users
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-11 17:03 UTC by Khaotic
Modified: 2004-05-14 08:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Khaotic 2004-03-11 17:03:28 UTC
When I load a .cue image as a normal user, it cant unload it, doesn't matter if as normal user or as root.
Loading the image as root, the root can normally unload it.
Loading it as root, normal users can't unload it.

This is the error message I get when trying to unload

$cdemu -u 2
Traceback (most recent call last):
  File "/usr/bin/cdemu", line 111, in ?
    main()
  File "/usr/bin/cdemu", line 92, in main
    libcdemu.unload_cd(device)
  File "/usr/lib/python2.3/site-packages/libcdemu.py", line 353, in unload_cd
    fcntl.ioctl(device, CDEMU_UNLOADCD,0)
IOError: [Errno 13] Permission denied

Reproducible: Always
Steps to Reproduce:
1. laod a .cue image as a normal user (cdemu 0 image.cue)
2. try to unload it as normal user (cdemu -u 0)
3.

Actual Results:  
it give me the following error message

Traceback (most recent call last):
  File "/usr/bin/cdemu", line 111, in ?
    main()
  File "/usr/bin/cdemu", line 92, in main
    libcdemu.unload_cd(device)
  File "/usr/lib/python2.3/site-packages/libcdemu.py", line 353, in unload_cd
    fcntl.ioctl(device, CDEMU_UNLOADCD,0)
IOError: [Errno 13] Permission denied

Expected Results:  
the prompt, and the image unloaded

Runnig here gentodev-sources 2.6.3-r1, and cdemu0.6_beta
Comment 1 SpanKY gentoo-dev 2004-05-14 08:46:48 UTC
someone pointed this out to me a while back and i fixed it in cdemu cvs