Bug 173891
Summary: | os.path.realpath can't handle symlink loops | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Bastien Nocera <bnocera> | ||||
Component: | python | Assignee: | Jeremy Katz <katzj> | ||||
Status: | CLOSED ERRATA | QA Contact: | Brock Organ <borgan> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4.0 | CC: | katzj, swarren, twegener | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | RHBA-2007-0247 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-05-01 17:18:06 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Bastien Nocera
2005-11-22 09:14:48 UTC
Created attachment 121336 [details]
python-no-symlink-loop-rhel4.patch
RHEL4 patch.
The client is asking for an update on this issue and has asked why this was not fixed in the latest update release. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. Fixed in python-2.3.4-14.4 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2007-0247.html Unfortunately, the patch completely breaks correct operation of
os.path.realpath() in some scenarios:
Look at the existing symlink using ls:
$ ls -l /mnt/backup/hydrogen.gyanasoft.com/sequence/bkp.0
/mnt/backup/hydrogen.gyanasoft.com/sequence/bkp.0 ->
../data/bkp.2007.06.12.10.04
Ask Python about the symlink (python was run from the "backupplus" directory):
>>> os.path.realpath('/mnt/backup/hydrogen.gyanasoft.com/sequence/bkp.0')
'/home/swarren/cron_scripts/backupplus/data/bkp.2007.06.12.10.04'
The correct Python result above should have been:
/mnt/backup/hydrogen.gyanasoft.com/data/bkp.2007.06.12.10.04
Note that this occurs in python-2.3.4-14.4, but does not occur in
python-2.4.3-19.el5 from RHEL5.
Any traction on this bug? I would have expected a new release with the bogus patch backed out to be released ASAP... |