#else
j = BIO_snprintf(buf[0], sizeof buf[0], "%s-%s", dbfile, suffix);
#endif
+#ifdef RL_DEBUG
BIO_printf(bio_err, "DEBUG: writing \"%s\"\n", buf[0]);
+#endif
if (BIO_write_filename(out,buf[0]) <= 0)
{
perror(dbfile);
BIO_free(out);
out = BIO_new(BIO_s_file());
+#ifdef RL_DEBUG
BIO_printf(bio_err, "DEBUG: writing \"%s\"\n", buf[1]);
+#endif
if (BIO_write_filename(out,buf[1]) <= 0)
{
perror(buf[2]);
}
else
{
+#ifdef RL_DEBUG
BIO_printf(bio_err, "DEBUG: renaming \"%s\" to \"%s\"\n",
dbfile, buf[1]);
+#endif
if (rename(dbfile,buf[1]) < 0)
{
BIO_printf(bio_err,
goto err;
}
}
+#ifdef RL_DEBUG
BIO_printf(bio_err, "DEBUG: renaming \"%s\" to \"%s\"\n",
buf[0],dbfile);
+#endif
if (rename(buf[0],dbfile) < 0)
{
BIO_printf(bio_err,
}
else
{
+#ifdef RL_DEBUG
BIO_printf(bio_err, "DEBUG: renaming \"%s\" to \"%s\"\n",
buf[4],buf[3]);
+#endif
if (rename(buf[4],buf[3]) < 0)
{
BIO_printf(bio_err,
goto err;
}
}
+#ifdef RL_DEBUG
BIO_printf(bio_err, "DEBUG: renaming \"%s\" to \"%s\"\n",
buf[2],buf[4]);
+#endif
if (rename(buf[2],buf[4]) < 0)
{
BIO_printf(bio_err,
p = NCONF_get_string(conf, section, "unique_subject");
if (p)
{
+#ifdef RL_DEBUG
BIO_printf(bio_err, "DEBUG: unique_subject = \"%s\"\n", p);
+#endif
switch(*p)
{
case 'f': /* false */
break;
}
}
+#ifdef RL_DEBUG
else
BIO_printf(bio_err, "DEBUG: unique_subject undefined\n", p);
+#endif
+#ifdef RL_DEBUG
BIO_printf(bio_err, "DEBUG: configured unique_subject is %d\n",
db_attr.unique_subject);
+#endif
in=BIO_new(BIO_s_file());
out=BIO_new(BIO_s_file());