Lines Matching refs:ret
84 krb5_error_code ret = 0;
94 ret = db->hdb_lock(context, db, HDB_RLOCK);
95 if(ret) return ret;
104 ret = hdb_unseal_keys (context, db, &entry->entry);
105 if (ret)
108 if (ret == 0 && entry->entry.principal == NULL) {
112 ret = ENOMEM;
113 krb5_set_error_message(context, ret, "malloc: out of memory");
118 return ret;
150 int ret = errno;
151 krb5_set_error_message(context, ret, "open(%s): %s", lock_file,
152 strerror(ret));
153 return ret;
162 int ret;
167 ret = open_lock_file(context, db->hdb_name, &old_lock_fd);
168 if (ret)
169 return ret;
171 ret = hdb_lock(old_lock_fd, HDB_WLOCK);
172 if(ret) {
174 return ret;
177 ret = open_lock_file(context, new_name, &new_lock_fd);
178 if (ret) {
181 return ret;
184 ret = hdb_lock(new_lock_fd, HDB_WLOCK);
185 if(ret) {
189 return ret;
197 ret = rename(old_dir, new_dir) || rename(old_pag, new_pag);
198 if (ret) {
199 ret = errno;
200 if (ret == 0)
201 ret = EPERM;
202 krb5_set_error_message(context, ret, "rename: %s", strerror(ret));
215 if(ret)
216 return ret;
279 krb5_error_code ret;
283 ret = db->hdb_lock(context, db, HDB_WLOCK);
284 if(ret) return ret;
306 krb5_error_code ret;
316 ret = errno;
318 krb5_set_error_message(context, ret, "dbm_open(%s): %s", db->hdb_name,
319 strerror(ret));
320 return ret;
323 ret = open_lock_file(context, db->hdb_name, &d->lock_fd);
324 if (ret) {
325 ret = errno;
328 krb5_set_error_message(context, ret, "open(lock file): %s",
329 strerror(ret));
330 return ret;
335 ret = hdb_check_db_format(context, db);
337 ret = hdb_init_db(context, db);
338 if(ret == HDB_ERR_NOENTRY)
340 if (ret) {
342 krb5_set_error_message(context, ret, "hdb_open: failed %s database %s",
347 return ret;