X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest.c;h=f79768d87877f3ff7c8d6a3865842c0a3ee85ceb;hp=bac0aa350ac24378e8af2b949cb0781a7699906a;hb=adc9909e26f96eec2c6846aa4085551af59979cf;hpb=8c2259a20d1039d9ddfca3aa40c1309b19ec20e2;ds=sidebyside 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)) {