diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-11-26 11:03:35 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-12-15 13:10:57 -0500 |
commit | 405a8d3fb4884d5e5c5f32881a1a810b733a5aad (patch) | |
tree | 53fbd1b246592d767837236082f44b3a5bf4cba0 /src/common/compat.h | |
parent | fd0c6671d13333f2ddb41e792b40162c841adae6 (diff) | |
download | tor-405a8d3fb4884d5e5c5f32881a1a810b733a5aad.tar.gz tor-405a8d3fb4884d5e5c5f32881a1a810b733a5aad.zip |
Update KeepCapabilities based on comments from asn
* The option is now KeepBindCapabilities
* We now warn if the user specifically asked for KeepBindCapabilities
and we can't deliver.
* The unit tests are willing to start.
* Fewer unused-variable warnings.
* More documentation, fewer misspellings.
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index b245d7d1bd..df95636200 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -632,7 +632,10 @@ int tor_disable_debugger_attach(void); int have_capability_support(void); -#define SWITCH_ID_KEEP_BINDLOW 1 +/** Flag for switch_id; see switch_id() for documentation */ +#define SWITCH_ID_KEEP_BINDLOW (1<<0) +/** Flag for switch_id; see switch_id() for documentation */ +#define SWITCH_ID_WARN_IF_NO_CAPS (1<<1) int switch_id(const char *user, unsigned flags); #ifdef HAVE_PWD_H char *get_user_homedir(const char *username); |