Fixed the permission denied with the -i option on lstat().