Commit 5c34a530 authored by George Kadianakis's avatar George Kadianakis Committed by Nick Mathewson
Browse files

Don't exit if we can't find the GuardfractionFile when booting.

...just disable the feature in that case.
parent 33053d50
Loading
Loading
Loading
Loading
+0 −7
Original line number Original line Diff line number Diff line
@@ -2791,13 +2791,6 @@ options_validate(or_options_t *old_options, or_options_t *options,
    }
    }
    /* same for guardfraction file */
    /* same for guardfraction file */
    if (options->GuardfractionFile && !old_options) {
    if (options->GuardfractionFile && !old_options) {
      file_status_t fs = file_status(options->GuardfractionFile);
      if (fs == FN_EMPTY) {
        REJECT("GuardfractionFile set but it's an empty file? Failing");
      } else if (fs != FN_FILE) {
        REJECT("GuardfractionFile set but not a file? Failing");
      }

      dirserv_read_guardfraction_file(options->GuardfractionFile, NULL);
      dirserv_read_guardfraction_file(options->GuardfractionFile, NULL);
    }
    }
  }
  }