Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 749624 | Differences between
and this patch

Collapse All | Expand All

(-)a/paxelf.c (-2 / +1 lines)
Lines 676-682 elfobj *_readelf_fd(const char *filename, int fd, size_t len, int read_only) Link Here
676
			return NULL;
676
			return NULL;
677
	}
677
	}
678
678
679
	buffer = mmap(0, len, PROT_READ | (read_only ? 0 : PROT_WRITE), (read_only ? MAP_PRIVATE : MAP_SHARED), fd, 0);
679
	buffer = mmap(0, len, PROT_READ | (read_only ? 0 : PROT_WRITE), MAP_SHARED, fd, 0);
680
	if (buffer == MAP_FAILED) {
680
	if (buffer == MAP_FAILED) {
681
		warn("mmap on '%s' of %li bytes failed :(", filename, (unsigned long)len);
681
		warn("mmap on '%s' of %li bytes failed :(", filename, (unsigned long)len);
682
		return NULL;
682
		return NULL;
683
- 

Return to bug 749624