From e60d25c78e5a38c5eea07d9a1bf330b350da4cce Mon Sep 17 00:00:00 2001 From: Pavlina Moravcova Varekova Date: Thu, 4 Jul 2019 09:05:41 +0200 Subject: [PATCH] Raise an error if reading a file during rpmbuild fails (#776) --- build/files.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/files.c b/build/files.c index b95af1c573..d54d67f387 100644 --- a/build/files.c +++ b/build/files.c @@ -1575,6 +1575,8 @@ static rpmRC recurseDir(FileList fl, const char * diskPath) case FTS_INIT: /* initialized only */ case FTS_W: /* whiteout object */ default: + rpmlog(RPMLOG_ERR, _("Can't read content of file: %s\n"), + fts->fts_path); rc = RPMRC_FAIL; break; }