summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-01-10 20:00:20 +0000
committerNick Mathewson <nickm@torproject.org>2006-01-10 20:00:20 +0000
commit7fc62029d4d3d7de526b7aa679b96a7da9824aa2 (patch)
tree0054e39e46b236532cbb9b27f0eb4b100941c6fe /src/common/util.h
parente1d1ce3da83a8cb2e4e321e6dd5f03d9e3f847ba (diff)
downloadtor-7fc62029d4d3d7de526b7aa679b96a7da9824aa2.tar.gz
tor-7fc62029d4d3d7de526b7aa679b96a7da9824aa2.zip
Refuse to use RunAsDaemon when torrc is a relative path. Fixes bug 229.
svn:r5767
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h1
1 files changed, 1 insertions, 0 deletions
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);