mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
tweak
svn:r6051
This commit is contained in:
parent
276a7bd038
commit
0408adb728
@ -169,8 +169,8 @@ init_key_from_file_name_changed(const char *fname_old,
|
|||||||
|
|
||||||
/* The old filename exists, and the new one doesn't. Rename and load. */
|
/* The old filename exists, and the new one doesn't. Rename and load. */
|
||||||
if (rename(fname_old, fname_new) < 0) {
|
if (rename(fname_old, fname_new) < 0) {
|
||||||
log_fn(LOG_ERR, LD_FS, "Couldn't rename \"%s\" to \"%s\": %s",
|
log_warn(LD_FS, "Couldn't rename \"%s\" to \"%s\": %s",
|
||||||
fname_old, fname_new, strerror(errno));
|
fname_old, fname_new, strerror(errno));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
return init_key_from_file(fname_new);
|
return init_key_from_file(fname_new);
|
||||||
|
Loading…
Reference in New Issue
Block a user