]> git.e2factory.org Git - e2factory.git/commit
e2lib: split up stat() into lstat() and remove inconsistencies
authorTobias Ulmer <tu@emlix.com>
Tue, 11 Oct 2016 16:08:33 +0000 (18:08 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
commit5006281ad1fa74f9619605c95cca7691caf6ee9a
tree01bde57eb9e0109c7bc58241cf90dce4ae3d55dd
parent26ac1563d228505462a35a4c418f2bb98bbc0c7b
e2lib: split up stat() into lstat() and remove inconsistencies

This allows symlinks (not encouraged!) to work more consistently.

It also fixes a bug where we cached the symlink information instead of
the real file.

Prior to this change stat(foo, true) worked like posix stat(), while
stat(foo) or stat(foo, false) worked like lstat. This change undoes the
confusion, both functions work like their posix namesakes.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua
local/e2build.lua
local/result.lua
local/source.lua
plugins/files.lua