diff options
author | Peter Palfrader <peter@palfrader.org> | 2016-03-01 17:08:14 +0100 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2016-03-01 17:08:14 +0100 |
commit | 1ef7df551d8efc0a74536006c17bdaa3cbb0931d (patch) | |
tree | fcfbd01f83184691a22d72e0883c8cb001ca9f73 /src/common/util.h | |
parent | 9fc472e1a8a53a18dfbd5c9cde2f1c268c335e96 (diff) | |
download | tor-1ef7df551d8efc0a74536006c17bdaa3cbb0931d.tar.gz tor-1ef7df551d8efc0a74536006c17bdaa3cbb0931d.zip |
First RelaxDirModeCheck implementation
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/common/util.h b/src/common/util.h index 9657003105..ebcf88b32d 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -357,12 +357,13 @@ 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 unsigned int cpd_check_t; -#define CPD_NONE 0 -#define CPD_CREATE 1 -#define CPD_CHECK 2 -#define CPD_GROUP_OK 4 -#define CPD_GROUP_READ 8 -#define CPD_CHECK_MODE_ONLY 16 +#define CPD_NONE 0 +#define CPD_CREATE (1u << 0) +#define CPD_CHECK (1u << 1) +#define CPD_GROUP_OK (1u << 2) +#define CPD_GROUP_READ (1u << 3) +#define CPD_CHECK_MODE_ONLY (1u << 4) +#define CPD_RELAX_DIRMODE_CHECK (1u << 5) int check_private_dir(const char *dirname, cpd_check_t check, const char *effective_user); |