diff options
author | ewt <devnull@localhost> | 1998-06-30 18:52:29 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1998-06-30 18:52:29 +0000 |
commit | bfc226e9ad87110c9aa0f0d3466135e0f8f47050 (patch) | |
tree | 60b271023582f6665807338cc868949102e35014 /lib/rebuilddb.c | |
parent | 5de4d92922b081d951cfb70bd62c9b15322e0879 (diff) | |
download | librpm-tizen-bfc226e9ad87110c9aa0f0d3466135e0f8f47050.tar.gz librpm-tizen-bfc226e9ad87110c9aa0f0d3466135e0f8f47050.tar.bz2 librpm-tizen-bfc226e9ad87110c9aa0f0d3466135e0f8f47050.zip |
added an error message when rmdir() fails
CVS patchset: 2159
CVS date: 1998/06/30 18:52:29
Diffstat (limited to 'lib/rebuilddb.c')
-rw-r--r-- | lib/rebuilddb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rebuilddb.c b/lib/rebuilddb.c index e71672b08..a34f9a3de 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)); } |