From bfc226e9ad87110c9aa0f0d3466135e0f8f47050 Mon Sep 17 00:00:00 2001 From: ewt Date: Tue, 30 Jun 1998 18:52:29 +0000 Subject: [PATCH] added an error message when rmdir() fails CVS patchset: 2159 CVS date: 1998/06/30 18:52:29 --- lib/rebuilddb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/rebuilddb.c b/lib/rebuilddb.c index e71672b..a34f9a3 100644 --- a/lib/rebuilddb.c +++ b/lib/rebuilddb.c @@ -103,7 +103,9 @@ int rpmdbRebuild(char * rootdir) { "to recover", dbpath, newdbpath); return 1; } - rmdir(newdbpath); + if (rmdir(newdbpath)) + rpmMessage(RPMERR_RMDIR, "failed to remove %s: %s\n", + newdbpath, strerror(errno)); } -- 2.7.4