X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest.c;h=f79768d87877f3ff7c8d6a3865842c0a3ee85ceb;hb=e31e88bc5b7c2a018323e80f5662cf82a2c39660;hp=bac0aa350ac24378e8af2b949cb0781a7699906a;hpb=f18b792838ee010b42091639b673c7b28606aa47;p=ccan diff --git a/ccan/failtest/failtest.c b/ccan/failtest/failtest.c index bac0aa35..f79768d8 100644 --- a/ccan/failtest/failtest.c +++ b/ccan/failtest/failtest.c @@ -701,7 +701,7 @@ int failtest_open(const char *pathname, free((char *)call.pathname); p->u.open.ret = open(pathname, call.flags, call.mode); - if (!failpath && p->u.open.ret == -1) { + if (p->u.open.ret == -1) { p->fail = false; p->error = errno; } else if (should_fail(p)) {