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.
Looking at usb-cdcreator it seems this is deliberate in some sense:
if stat.S_ ISLNK(st. st_mode) : lexists( targetpath) :
os. unlink( targetpath)
linkto = os.readlink( sourcepath)
#os.symlink( linkto, targetpath)
sys.stderr. write(' Tried to symlink %s -> %s\n' % \
( linkto, targetpath))
pass
if os.path.
# FIXME: Handle this somehow?
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.