Changeset 234 for branches/samba-3.2.x/source/passdb
- Timestamp:
- May 27, 2009, 11:59:40 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/passdb/pdb_tdb.c
r233 r234 881 881 } 882 882 883 /* be sure to close the DBs _before_ renaming the file */ 884 885 TALLOC_FREE(orig_db); 886 TALLOC_FREE(tmp_db); 887 883 888 /* This is safe from other users as we know we're 884 889 * under a mutex here. */ … … 893 898 894 899 TALLOC_FREE(frame); 895 TALLOC_FREE(orig_db); 900 901 /* re-open the converted TDB */ 902 903 orig_db = db_open_trans(NULL, dbname, 0, 904 TDB_DEFAULT, O_CREAT|O_RDWR, 0600); 905 if (orig_db == NULL) { 906 DEBUG(0, ("tdbsam_convert_backup: Failed to re-open " 907 "converted passdb TDB [%s]\n", dbname)); 908 return false; 909 } 896 910 897 911 DEBUG(1, ("tdbsam_convert_backup: updated %s file.\n", … … 899 913 900 914 /* Replace the global db pointer. */ 901 *pp_db = tmp_db;915 *pp_db = orig_db; 902 916 return true; 903 917
Note:
See TracChangeset
for help on using the changeset viewer.