Loading src/app/config/config.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -3303,7 +3303,7 @@ options_validate(const or_options_t *old_options, or_options_t *options, */ */ static int static int warn_if_option_path_is_relative(const char *option, warn_if_option_path_is_relative(const char *option, char *filepath) const char *filepath) { { if (filepath && path_is_relative(filepath)) { if (filepath && path_is_relative(filepath)) { char *abs_path = make_path_absolute(filepath); char *abs_path = make_path_absolute(filepath); Loading @@ -3321,7 +3321,7 @@ warn_if_option_path_is_relative(const char *option, * Return 1 if there were relative paths; 0 otherwise. * Return 1 if there were relative paths; 0 otherwise. */ */ static int static int warn_about_relative_paths(or_options_t *options) warn_about_relative_paths(const or_options_t *options) { { tor_assert(options); tor_assert(options); int n = 0; int n = 0; Loading src/lib/fs/path.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -258,7 +258,7 @@ alloc_getcwd(void) * Return a newly allocated string, which may be a duplicate of <b>fname</b>. * Return a newly allocated string, which may be a duplicate of <b>fname</b>. */ */ char * char * make_path_absolute(char *fname) make_path_absolute(const char *fname) { { #ifdef _WIN32 #ifdef _WIN32 char *absfname_malloced = _fullpath(NULL, fname, 1); char *absfname_malloced = _fullpath(NULL, fname, 1); Loading src/lib/fs/path.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -25,6 +25,6 @@ char *expand_filename(const char *filename); int path_is_relative(const char *filename); int path_is_relative(const char *filename); void clean_fname_for_stat(char *name); void clean_fname_for_stat(char *name); int get_parent_directory(char *fname); int get_parent_directory(char *fname); char *make_path_absolute(char *fname); char *make_path_absolute(const char *fname); #endif /* !defined(TOR_PATH_H) */ #endif /* !defined(TOR_PATH_H) */ Loading
src/app/config/config.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -3303,7 +3303,7 @@ options_validate(const or_options_t *old_options, or_options_t *options, */ */ static int static int warn_if_option_path_is_relative(const char *option, warn_if_option_path_is_relative(const char *option, char *filepath) const char *filepath) { { if (filepath && path_is_relative(filepath)) { if (filepath && path_is_relative(filepath)) { char *abs_path = make_path_absolute(filepath); char *abs_path = make_path_absolute(filepath); Loading @@ -3321,7 +3321,7 @@ warn_if_option_path_is_relative(const char *option, * Return 1 if there were relative paths; 0 otherwise. * Return 1 if there were relative paths; 0 otherwise. */ */ static int static int warn_about_relative_paths(or_options_t *options) warn_about_relative_paths(const or_options_t *options) { { tor_assert(options); tor_assert(options); int n = 0; int n = 0; Loading
src/lib/fs/path.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -258,7 +258,7 @@ alloc_getcwd(void) * Return a newly allocated string, which may be a duplicate of <b>fname</b>. * Return a newly allocated string, which may be a duplicate of <b>fname</b>. */ */ char * char * make_path_absolute(char *fname) make_path_absolute(const char *fname) { { #ifdef _WIN32 #ifdef _WIN32 char *absfname_malloced = _fullpath(NULL, fname, 1); char *absfname_malloced = _fullpath(NULL, fname, 1); Loading
src/lib/fs/path.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -25,6 +25,6 @@ char *expand_filename(const char *filename); int path_is_relative(const char *filename); int path_is_relative(const char *filename); void clean_fname_for_stat(char *name); void clean_fname_for_stat(char *name); int get_parent_directory(char *fname); int get_parent_directory(char *fname); char *make_path_absolute(char *fname); char *make_path_absolute(const char *fname); #endif /* !defined(TOR_PATH_H) */ #endif /* !defined(TOR_PATH_H) */