diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-15 20:20:36 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-15 20:20:36 -0400 |
commit | ede102fd4675af8ac4060767f0348f3c93617e80 (patch) | |
tree | 29f2e5a044c793c55dbcb834822ac9075a23c530 /src/common/util.h | |
parent | 2b9c5ee301f705cbf69c725ca749d4ac752c06d3 (diff) | |
parent | f72e792be5437c9ee11d3f498ed3bb469b46d1bb (diff) | |
download | tor-ede102fd4675af8ac4060767f0348f3c93617e80.tar.gz tor-ede102fd4675af8ac4060767f0348f3c93617e80.zip |
Merge branch 'bug2972' into maint-0.2.2
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h index 961b5875ad..f32709accd 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -286,7 +286,12 @@ file_status_t file_status(const char *filename); /** Possible behaviors for check_private_dir() on encountering a nonexistent * directory; see that function's documentation for details. */ -typedef enum { CPD_NONE, CPD_CREATE, CPD_CHECK } cpd_check_t; +typedef unsigned int cpd_check_t; +#define CPD_NONE 0 +#define CPD_CREATE 1 +#define CPD_CHECK 2 +#define CPD_GROUP_OK 4 +#define CPD_CHECK_MODE_ONLY 8 int check_private_dir(const char *dirname, cpd_check_t check); #define OPEN_FLAGS_REPLACE (O_WRONLY|O_CREAT|O_TRUNC) #define OPEN_FLAGS_APPEND (O_WRONLY|O_CREAT|O_APPEND) |