Red Hat Bugzilla – Bug 126368
crash if isodir contains bad link
Last modified: 2007-11-30 17:10:45 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040510
Description of problem:
I run fedora core 2, and have the cd images on an ext2 partition
containing an old linux installation. The partition is mounted on
/mnt/other, and the isos are located in /mnt/other/home/frank.
This directory happens to have a symlink
'.DCOPserver_localhost.localdomain' pointing to
'/home/frank/.DCOPserver_localhost.localdomain_:0', which does not
exist in this mount context.
When invoking 'system-config-packages --isodir=/mnt/other/home/frank'
it crashes with the traceback below.
As system-config-packages does not need to use the link, it should
ignore the fact that that it points to nothing.
A workaround is to create a subdir, moving the iso images into that
dir and using that dir for --isodir.
Traceback (most recent call last):
File "/usr/share/system-config-packages/MainWindow.py", line 160, in ?
im = get_method(args)
File "/usr/share/system-config-packages/config.py", line 57, in
File "/usr/share/system-config-packages/method.py", line 342, in
self.discImages = findIsoImages(tree)
File "/usr/share/system-config-packages/method.py", line 859, in
diskutil.losetup(loopDev, what, readOnly = 1)
File "/usr/lib/python2.3/site-packages/rhpl/diskutil.py", line 82,
targ = os.open(file, mode)
OSError: [Errno 2] No such file or directory:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. have the iso images in a dir together with a broken symlink
(perhaps the symlink must occur before the images in the dir-list)
2. run system-config-packages --isodir=<path/to/that/dir>
Fedora Core 2 is now maintained by the Fedora Legacy project for
security updates only. If this problem is a security issue, please
reopen and reassign to the Fedora Legacy product. If it is not a
security issue and hasn't been resolved in the current FC3 updates or
in the FC4 test release, reopen and change the version to match.
Closing as fixed in a later release