Group :: Ferramentas de Arquivo
RPM: xdelta1
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: xdelta-1.1.4-alt-oom.patch
Download
Download
--- xdelta-1.1.4/xdmain.c.orig 2007-04-07 22:12:30 +0000
+++ xdelta-1.1.4/xdmain.c 2007-04-07 22:14:48 +0000
@@ -1299,7 +1299,8 @@ xd_handle_map_page (XdFileHandle *fh, gu
return -1;
}
#else
- if (! (lru->buffer = mmap (NULL, to_map, PROT_READ, MAP_PRIVATE, fh->fd, pgno * XD_PAGE_SIZE)))
+ lru->buffer = mmap (NULL, to_map, PROT_READ, MAP_PRIVATE, fh->fd, pgno * XD_PAGE_SIZE);
+ if (MAP_FAILED == lru->buffer)
{
xd_error ("mmap failed: %s\n", g_strerror (errno));
return -1;