diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-13 15:40:03 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-15 20:20:29 -0400 |
commit | 5d147d8527da3c8cff7f5ab5f0d0185d51fff79b (patch) | |
tree | 4ea4c6ffab1b8890d8308221640fbe409a7248f6 /src/common/util.h | |
parent | 3b6cbf253494303f612eeb09a6fbb30a7c15c7fa (diff) | |
download | tor-5d147d8527da3c8cff7f5ab5f0d0185d51fff79b.tar tor-5d147d8527da3c8cff7f5ab5f0d0185d51fff79b.tar.gz |
Add a new flag to check_private_dir to make it _not_ change permissions
We'll need this for checking permissions on the directories that hold
control sockets: if somebody says "ControlSocket ~/foo", it would be
pretty rude to do a chmod 700 on their homedir.
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index f75953226..f32709acc 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -291,6 +291,7 @@ typedef unsigned int cpd_check_t; #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) |