From eda41004e84015059bb5ab8a688d3012e8a519a2 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 6 Mar 2008 12:02:24 +0100 Subject: [PATCH] File setup open can fail in multiple functions, not just open() Signed-off-by: Jens Axboe --- filesetup.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/filesetup.c b/filesetup.c index f8e4d77c..eedb3dc3 100644 --- a/filesetup.c +++ b/filesetup.c @@ -320,7 +320,10 @@ open_again: goto open_again; } - snprintf(buf, sizeof(buf) - 1, "open(%s)", f->file_name); + if (from_hash) + snprintf(buf, sizeof(buf) - 1, "dup(%s)", f->file_name); + else + snprintf(buf, sizeof(buf) - 1, "open(%s)",f->file_name); td_verror(td, __e, buf); } -- 2.25.1