Fix samba related crashes

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg166543.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38003 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2011-03-23 14:28:23 +00:00
parent a671dc5851
commit 44c0b9d7da

View File

@ -543,7 +543,9 @@ unsigned long FileName::checksum() const
return result; return result;
struct stat info; struct stat info;
fstat(fd, &info); if (fstat(fd, &info))
// bug 5891
return result;
void * mm = mmap(0, info.st_size, PROT_READ, void * mm = mmap(0, info.st_size, PROT_READ,
MAP_PRIVATE, fd, 0); MAP_PRIVATE, fd, 0);