From 8c15d641b0b0186b3c3ae5b22ad104cb3132d90e Mon Sep 17 00:00:00 2001 From: pooka Date: Thu, 24 Feb 2011 14:22:04 +0000 Subject: [PATCH] Fix static fallback path. --- lib/librumpclient/rumpclient.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librumpclient/rumpclient.c b/lib/librumpclient/rumpclient.c index 8261930c09c4..49e6086b2be1 100644 --- a/lib/librumpclient/rumpclient.c +++ b/lib/librumpclient/rumpclient.c @@ -1,4 +1,4 @@ -/* $NetBSD: rumpclient.c,v 1.35 2011/02/24 12:25:44 pooka Exp $ */ +/* $NetBSD: rumpclient.c,v 1.36 2011/02/24 14:22:04 pooka Exp $ */ /* * Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved. @@ -750,9 +750,9 @@ rumpclient_init() #define FINDSYM2(_name_,_syscall_) \ if ((host_##_name_ = rumphijack_dlsym(RTLD_NEXT, \ #_syscall_)) == NULL) { \ - if (rumphijack_dlsym == dlsym) \ + if (rumphijack_dlsym == rumpclient__dlsym) \ host_##_name_ = _name_; /* static fallback */ \ - else \ + if (host_##_name_ == NULL) \ errx(1, "cannot find %s: %s", #_syscall_, \ dlerror()); \ }