revert the lstat part
restore the old behavior for the assignment to string offset