34
35
static int dbif_stamp(DBD *dbd, void *buffer, int size)
43
45
if ((cwd = open(".", O_RDONLY)) < 0) {
44
46
LOG(log_error, logtype_cnid, "error opening cwd: %s", strerror(errno));
48
50
/* chdir to db_envhome */
49
51
if ((chdir(dbd->db_envhome)) != 0) {
50
52
LOG(log_error, logtype_cnid, "error chdiring to db_env '%s': %s", dbd->db_envhome, strerror(errno));
55
57
LOG(log_error, logtype_cnid, "error stating database %s: %s", dbd->db_table[DBIF_CNID].name, db_strerror(errno));
59
61
LOG(log_maxdebug, logtype_cnid,"stamp: %s", asctime(localtime(&st.st_ctime)));