Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b112d6e

Browse files
author
Johannes Gijsbers
committed
bug 990669: os.path.normpath may alter the meaning of a path if it contains
symbolic links. This has been documented in a comment since 1992, but is now in the library reference as well.
1 parent 9d134b7 commit b112d6e

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Doc/lib/libposixpath.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ \section{\module{os.path} ---
154154
up-level references, e.g. \code{A//B}, \code{A/./B} and
155155
\code{A/foo/../B} all become \code{A/B}. It does not normalize the
156156
case (use \function{normcase()} for that). On Windows, it converts
157-
forward slashes to backward slashes.
157+
forward slashes to backward slashes. It should be understood that this may
158+
change the meaning of the path if it contains symbolic links!
158159
\end{funcdesc}
159160

160161
\begin{funcdesc}{realpath}{path}

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ C API
7777
Documentation
7878
-------------
7979

80+
- bug 990669: os.path.normpath may alter the meaning of a path if it contains
81+
symbolic links. This has been documented in a comment since 1992, but is now in
82+
the library reference as well.
83+
8084
New platforms
8185
-------------
8286

0 commit comments

Comments
 (0)