Browse Source

error-check renaming of uid mapping database

for pedantry.

found by coverity.
1.1
Oswald Buddenhagen 11 years ago
parent
commit
532d964aea
  1. 5
      src/compat/convert.c

5
src/compat/convert.c

@ -240,7 +240,10 @@ convert( config_t *box )
goto err4;
}
db->close( db, 0 );
rename( iumname, diumname );
if (rename( iumname, diumname )) {
sys_error( "Cannot rename %s to %s", iumname, diumname );
goto err4;
}
} else {
if (!(fp = fopen( uvname, "w" ))) {
sys_error( "Cannot create %s", uvname );

Loading…
Cancel
Save