From a76558a92e21643a628c3c6a8cd22816634b1749 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 5 Sep 2009 23:35:09 +0200 Subject: do not pass 3rd param to open() which do not create files Signed-off-by: Denys Vlasenko --- utils/ldd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') 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; -- cgit v1.2.3