From: <pj...@us...> - 2008-03-03 05:10:33
|
Revision: 4186 http://jython.svn.sourceforge.net/jython/?rev=4186&view=rev Author: pjenvey Date: 2008-03-02 21:10:24 -0800 (Sun, 02 Mar 2008) Log Message: ----------- fix os.lstat('/') Modified Paths: -------------- trunk/jython/Lib/javaos.py Modified: trunk/jython/Lib/javaos.py =================================================================== --- trunk/jython/Lib/javaos.py 2008-02-28 16:55:33 UTC (rev 4185) +++ trunk/jython/Lib/javaos.py 2008-03-03 05:10:24 UTC (rev 4186) @@ -386,6 +386,9 @@ """ f = File(sys.getPath(path)) abs_parent = f.getAbsoluteFile().getParentFile() + if not abs_parent: + # root isn't a link + return stat(path) can_parent = abs_parent.getCanonicalFile() if can_parent.getAbsolutePath() == abs_parent.getAbsolutePath(): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |