From e91d16c10e0affd96bb667c4087bd41c9124be9c Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Wed, 22 Sep 2010 10:41:37 +0200 Subject: [PATCH] fl_wrapper: changed to skip post action handling for open() calls that failed --- src/tools-source/fl_wrapper/tpl_open.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools-source/fl_wrapper/tpl_open.c b/src/tools-source/fl_wrapper/tpl_open.c index 6adeac6..9a6b9f1 100644 --- a/src/tools-source/fl_wrapper/tpl_open.c +++ b/src/tools-source/fl_wrapper/tpl_open.c @@ -56,6 +56,9 @@ RET_TYPE FUNCTION(P1) } else rc = orig_FUNCTION(P2); + if (rc < 0) + return rc; + old_errno=errno; #if HAS_FFD handle_fileat_access_after("FUNCTION", ffd, f, &status);