fix bug on get_file_ptr for mmap-exit test case == 6 fails left