Module Name: src Committed By: pooka Date: Thu Feb 24 14:22:04 UTC 2011
Modified Files: src/lib/librumpclient: rumpclient.c Log Message: Fix static fallback path. To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/lib/librumpclient/rumpclient.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/librumpclient/rumpclient.c diff -u src/lib/librumpclient/rumpclient.c:1.35 src/lib/librumpclient/rumpclient.c:1.36 --- src/lib/librumpclient/rumpclient.c:1.35 Thu Feb 24 12:25:44 2011 +++ src/lib/librumpclient/rumpclient.c Thu Feb 24 14:22:04 2011 @@ -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 @@ #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()); \ }