Skip to content
Commit 00659ebe authored by Harald Sitter's avatar Harald Sitter 🐧
Browse files

replace open-fstat dance with lstat

since we know the path cannot be relative because of the dir separator
check there is no point in explicitly opening the path when we can
instead pass it to lstat as-is. the path will be absolutely of the form
/dev/foo so at most it could be a symlink that we'll not follow with
lstat.
parent 65a91a53
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment