diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-05 23:35:09 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-05 23:35:09 +0200 |
commit | a76558a92e21643a628c3c6a8cd22816634b1749 (patch) | |
tree | 8b1d7274fa71bcb36750dc671240224835225707 /utils | |
parent | 45f5c6f25b11fddd66f7a486b988d0d8e7e00341 (diff) |
do not pass 3rd param to open() which do not create files
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/ldd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ldd.c b/utils/ldd.c index e7a94cbc4..9cfd984fa 100644 --- a/utils/ldd.c +++ b/utils/ldd.c @@ -262,7 +262,7 @@ static int map_cache(void) else if (cache_addr != NULL) return 0; - if (stat(LDSO_CACHE, &st) || (fd = open(LDSO_CACHE, O_RDONLY, 0)) < 0) { + if (stat(LDSO_CACHE, &st) || (fd = open(LDSO_CACHE, O_RDONLY)) < 0) { fprintf(stderr, "ldd: can't open cache '%s'\n", LDSO_CACHE); cache_addr = (caddr_t) - 1; /* so we won't try again */ return -1; |