Fixed scan passwd. Now segfaults :(