From 7fc62029d4d3d7de526b7aa679b96a7da9824aa2 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 10 Jan 2006 20:00:20 +0000 Subject: Refuse to use RunAsDaemon when torrc is a relative path. Fixes bug 229. svn:r5767 --- src/common/util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common/util.h') diff --git a/src/common/util.h b/src/common/util.h index 37327bf6cc..bb127da559 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -158,6 +158,7 @@ char *read_file_to_str(const char *filename, int bin); char *parse_line_from_str(char *line, char **key_out, char **value_out); char *expand_filename(const char *filename); struct smartlist_t *tor_listdir(const char *dirname); +int path_is_relative(const char *filename); /* Net helpers */ int is_internal_IP(uint32_t ip, int for_listening); -- cgit v1.2.3-54-g00ecf