Bug 173595
Summary: | os.path.realpath can't handle symlink loops | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Göran Uddeborg <goeran> | ||||
Component: | python | Assignee: | Jeremy Katz <katzj> | ||||
Status: | CLOSED ERRATA | QA Contact: | Brock Organ <borgan> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 3.0 | CC: | katzj | ||||
Target Milestone: | --- | Keywords: | Patch | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | RHBA-2007-0468 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-06-11 18:46:19 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 170417 | ||||||
Attachments: |
|
Description
Göran Uddeborg
2005-11-18 15:18:37 UTC
Created attachment 121334 [details] python-no-symlink-loop-rhel3-2.patch Backported from http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Lib/posixpath.py?rev=1.75&view=log 1) Revision 1.67 - (view) (download) (as text) (annotate) - [select for diffs] Sat Jul 10 22:55:13 2004 UTC (16 months, 1 week ago) by bcannon Branch: MAIN Changes since 1.66: +30 -6 lines Diff to previous 1.66 posixpath.realpath() now detects symlink loops and returns the path just before the loop starts. Closes bug #930024. Thanks AM Kuchling. 2) Revision 1.71 - (view) (download) (as text) (annotate) - [select for diffs] Sat Aug 14 15:01:53 2004 UTC (15 months, 1 week ago) by jlgijsbers Branch: MAIN Changes since 1.70: +9 -7 lines Diff to previous 1.70 bug #990669: os.path.realpath() will resolve symlinks before normalizing the path, as normalizing the path may alter the meaning of the path if it contains symlinks. Also add tests for infinite symlink loops and parent symlinks that need to be resolved. And 3) Revision 1.74 - (view) (download) (as text) (annotate) - [select for diffs] Fri Jun 3 14:24:43 2005 UTC (5 months, 2 weeks ago) by birkenfeld Branch: MAIN Changes since 1.73: +1 -1 lines Diff to previous 1.73 Bug #1213894: os.path.realpath didn't resolve symlinks that were the first component of the path. The client is asking for an update on this issue and has asked why this was not fixed in the latest update release. Committed the patch and building as python-2.2.3-6.6 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-0468.html |