mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +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. */
|
||||
if (rename(fname_old, fname_new) < 0) {
|
||||
log_fn(LOG_ERR, LD_FS, "Couldn't rename \"%s\" to \"%s\": %s",
|
||||
fname_old, fname_new, strerror(errno));
|
||||
log_warn(LD_FS, "Couldn't rename \"%s\" to \"%s\": %s",
|
||||
fname_old, fname_new, strerror(errno));
|
||||
return NULL;
|
||||
}
|
||||
return init_key_from_file(fname_new);
|
||||
|
Loading…
Reference in New Issue
Block a user