diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-11-07 16:31:40 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-11-07 16:31:40 -0500 |
commit | 3e3040a5d911e6c4ae59114a0f98daf09ee299bc (patch) | |
tree | 74ef382fdecab05746d0fb8ccbd81dd0a2c29878 /src/common | |
parent | 7236e42684de017d66b38bac13c4f7ff8dac428c (diff) | |
parent | 9994404238e6b87907f811cab2a5126d030ff55d (diff) | |
download | tor-3e3040a5d911e6c4ae59114a0f98daf09ee299bc.tar.gz tor-3e3040a5d911e6c4ae59114a0f98daf09ee299bc.zip |
Merge branch 'maint-0.2.9'
Conflicts:
src/or/rendservice.c
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/util.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/common/util.c b/src/common/util.c index b1159e5334..cb5f12821e 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -2191,11 +2191,13 @@ file_status(const char *fname) } } -/** Check whether <b>dirname</b> exists and is private. If yes return 0. If - * it does not exist, and <b>check</b>&CPD_CREATE is set, try to create it - * and return 0 on success. If it does not exist, and - * <b>check</b>&CPD_CHECK, and we think we can create it, return 0. Else - * return -1. If CPD_GROUP_OK is set, then it's okay if the directory +/** Check whether <b>dirname</b> exists and is private. If yes return 0. + * If <b>dirname</b> does not exist: + * - if <b>check</b>&CPD_CREATE, try to create it and return 0 on success. + * - if <b>check</b>&CPD_CHECK, and we think we can create it, return 0. + * - if <b>check</b>&CPD_CHECK is false, and the directory exists, return 0. + * - otherwise, return -1. + * If CPD_GROUP_OK is set, then it's okay if the directory * is group-readable, but in all cases we create the directory mode 0700. * If CPD_GROUP_READ is set, existing directory behaves as CPD_GROUP_OK and * if the directory is created it will use mode 0750 with group read |