summaryrefslogtreecommitdiffstats
path: root/libelf/elf_begin.c
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/elf_begin.c')
-rw-r--r--libelf/elf_begin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libelf/elf_begin.c b/libelf/elf_begin.c
index be52f464..24bac42b 100644
--- a/libelf/elf_begin.c
+++ b/libelf/elf_begin.c
@@ -1,5 +1,5 @@
/* Create descriptor for processing file.
- Copyright (C) 1998-2005, 2006 Red Hat, Inc.
+ Copyright (C) 1998-2005, 2006, 2007 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <[email protected]>, 1998.
@@ -561,6 +561,7 @@ read_file (int fildes, off_t offset, size_t maxsize,
? PROT_READ
: PROT_READ|PROT_WRITE),
cmd == ELF_C_READ_MMAP_PRIVATE
+ || cmd == ELF_C_READ_MMAP
? MAP_PRIVATE : MAP_SHARED,
fildes, offset);
@@ -686,7 +687,7 @@ read_long_names (Elf *elf)
/* NUL-terminate the string. */
*runp = '\0';
- /* Skip the NUL bzte and the \012. */
+ /* Skip the NUL byte and the \012. */
runp += 2;
/* A sanity check. Somebody might have generated invalid