+Mon Mar 19 14:32:00 2001 Corinna Vinschen <corinna@vinschen.de>
+
+ * mmap.cc (map::get_list_by_fd): Avoid calling `get_namehash' when
+ file descriptor is -1.
+
Sat Mar 17 18:30:00 2001 Corinna Vinschen <corinna@vinschen.de>
* syscalls.cc (check_posix_perm): New static function.
#else /* so we use the name hash value to identify the file unless
it's not an anonymous mapping. */
if ((fd == -1 && lists[i]->fd == -1)
- || lists[i]->hash == fdtab[fd]->get_namehash ())
+ || (fd != -1 && lists[i]->hash == fdtab[fd]->get_namehash ()))
#endif
return lists[i];
return 0;