mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Some platforms have weird translations when you open files in "test" mode; make read/write_str_to_file aware.
svn:r2336
This commit is contained in:
+2
-2
@@ -219,8 +219,8 @@ typedef enum { FN_ERROR, FN_NOENT, FN_FILE, FN_DIR} file_status_t;
|
||||
|
||||
file_status_t file_status(const char *filename);
|
||||
int check_private_dir(const char *dirname, int create);
|
||||
int write_str_to_file(const char *fname, const char *str);
|
||||
char *read_file_to_str(const char *filename);
|
||||
int write_str_to_file(const char *fname, const char *str, int bin);
|
||||
char *read_file_to_str(const char *filename, int bin);
|
||||
int parse_line_from_file(char *line, int maxlen, FILE *f, char **key_out, char **value_out);
|
||||
char *expand_filename(const char *filename);
|
||||
int replace_file(const char *from, const char *to);
|
||||
|
||||
Reference in New Issue
Block a user