Description of problem:
From the command-line, writing "eject /media/NAME OF DISK" does not work if the
name of the disk media contains spaces. Tested on both Fedora 10 and 8.
Version-Release number of selected component (if applicable):
Eject version 2.1.5
How reproducible:
Make a CD with spaces in its name, try to eject from command-line with a path
to its entry in /media instead of going after its device entry in /dev
Actual results:
[perim@localhost]$ eject -v /media/MY\ Test
eject: device name is `/media/MY Test'
eject: expanded name is `/media/MY Test'
eject: `/media/MY Test' is not mounted
eject: `/media/MY Test' is not a mount point
eject: tried to use `/media/MY Test' as device name but it is no block device
eject: unable to find or open device for: `/media/MY Test'
[perim@localhost]$ cat /etc/mtab
...
/dev/sr1 /media/MY\040Test udf ro,nosuid,nodev,uhelper=hal,uid=500 0 0
Expected results:
CD popping out and happy user.
https://bugzilla.redhat.com/show_bug.cgi?id=492524
http://bugs.gentoo.org/151257