[Piglit] [PATCH] core: don't try to resolve the real path of the file
Ken Phillis Jr
kphillisjr at gmail.com
Tue Feb 11 06:17:31 CET 2014
On Mon, Feb 10, 2014 at 9:15 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> I may be showing signs of idiocy here, but... I don't at all
> understand what you're saying. Could you elaborate as to the specific
> example you have in mind where open(filename) differs from
> open(os.path.realpath(filename))? The example that I have is where
> "filename" is a fake symlink generated by the shell (or kernel, not
> sure), and dereferencing it is harmful. That's why I've removed the
> symlink dereference. In any other instance, open() would just follow
> the symlink just like realpath would...
>
> -ilia
The resolving of the real path is to resolve problems with relative
file paths and a system where the piglit's files and folders are read
only.
More information about the Piglit
mailing list