projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5de4d92
)
added an error message when rmdir() fails
author
ewt
<devnull@localhost>
Tue, 30 Jun 1998 18:52:29 +0000
(18:52 +0000)
committer
ewt
<devnull@localhost>
Tue, 30 Jun 1998 18:52:29 +0000
(18:52 +0000)
CVS patchset: 2159
CVS date: 1998/06/30 18:52:29
lib/rebuilddb.c
patch
|
blob
|
history
diff --git
a/lib/rebuilddb.c
b/lib/rebuilddb.c
index
e71672b
..
a34f9a3
100644
(file)
--- 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));
}