Disallow transitions on SyslogIdentityTag, since they do not work right

This commit is contained in:
Nick Mathewson 2015-09-30 18:33:02 +02:00
parent 335af6fed8
commit 71e4649f02
1 changed files with 6 additions and 0 deletions

View File

@ -3997,6 +3997,12 @@ options_transition_allowed(const or_options_t *old,
return -1;
}
if (!opt_streq(old->SyslogIdentityTag, new_val->SyslogIdentityTag)) {
*msg = tor_strdup("While Tor is running, changing "
"SyslogIdentityTag is not allowed.");
return -1;
}
if ((old->HardwareAccel != new_val->HardwareAccel)
|| !opt_streq(old->AccelName, new_val->AccelName)
|| !opt_streq(old->AccelDir, new_val->AccelDir)) {