added an error message when rmdir() fails
authorewt <devnull@localhost>
Tue, 30 Jun 1998 18:52:29 +0000 (18:52 +0000)
committerewt <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

index e71672b..a34f9a3 100644 (file)
@@ -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));
     }