Comment 4 for bug 326856

Revision history for this message
Andy Whitcroft (apw) wrote :

Looking at usb-cdcreator it seems this is deliberate in some sense:

            if stat.S_ISLNK(st.st_mode):
                if os.path.lexists(targetpath):
                    os.unlink(targetpath)
                linkto = os.readlink(sourcepath)
                #os.symlink(linkto, targetpath)
                # FIXME: Handle this somehow?
                sys.stderr.write('Tried to symlink %s -> %s\n' % \
                    (linkto, targetpath))
                pass

Its not obvious why simply symlinking this is not correct. If the symlink is relative as it is on the CDROM image then it will be fine, absolute ones could conceivably be seen as a security issue, as could those which move outside of the image. Though that should be possible to detect and reject such things.