aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/common/util.c b/src/common/util.c
index e3a918c05..6a162cf07 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1507,13 +1507,6 @@ char *read_file_to_str(const char *filename) {
tor_assert(filename);
-#if 0
- if(strcspn(filename,CONFIG_LEGAL_FILENAME_CHARACTERS) != 0) {
- log_fn(LOG_WARN,"Filename %s contains illegal characters.",filename);
- return NULL;
- }
-#endif
-
if(stat(filename, &statbuf) < 0) {
log_fn(LOG_INFO,"Could not stat %s.",filename);
return NULL;
@@ -1624,7 +1617,7 @@ int replace_file(const char *from, const char *to)
#ifndef MS_WINDOWS
return rename(from,to);
#else
- switch(file_status(to))
+ switch(file_status(to))
{
case FN_NOENT:
break;