Message9469

Author kaneg
Recipients kaneg, pekka.klarck, zyasoft
Date 2015-01-31.07:13:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1422688385.19.0.915941471725.issue2255@psf.upfronthosting.co.za>
In-reply-to
Content
After reading source code, it was related to os.lstat and os.stat changes in PosixModule which was made on 2/29/2014 and 4/25/2014:
            String absolutePath = absolutePath(path);

            // round tripping from a string to a file to a string loses
            // trailing slashes so add them back back in to get correct posix.lstat
            // behaviour if path is not a directory.
            if (asPath(path).endsWith(File.separator)) {
                absolutePath = absolutePath + File.separator;
            }
            return PyStatResult.fromFileStat(posix.lstat(absolutePath));

According to the change, it will apppend a backslash(For Windows) to the absolute path if the origin path ends with a backslash. But the posix.lstat will report error if the path ends with a backslash. 
Not sure it's an issue for posix implemation in jnr-posix or the path should not be appended a backslash.
History
Date User Action Args
2015-01-31 07:13:05kanegsetmessageid: <1422688385.19.0.915941471725.issue2255@psf.upfronthosting.co.za>
2015-01-31 07:13:05kanegsetrecipients: + kaneg, pekka.klarck, zyasoft
2015-01-31 07:13:05kaneglinkissue2255 messages
2015-01-31 07:13:04kanegcreate