diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-10-29 15:16:22 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-10-29 16:01:55 +0100 |
commit | 60ddf6284f59516154dccb3eabc7a45e9598cd22 (patch) | |
tree | 64c93079e4ce3e43527d7ae13537b5400e5f7dc4 /src/libcharon/plugins/smp/smp.c | |
parent | d402e87d165490fc6570a351b2842edab5353416 (diff) | |
download | strongswan-60ddf6284f59516154dccb3eabc7a45e9598cd22.tar.bz2 strongswan-60ddf6284f59516154dccb3eabc7a45e9598cd22.tar.xz |
Use exact mask when calling umask(2)
Due to the previous negation the high bits of the mask were set, which
at least some versions of the Android build system prevent with a compile-time
check.
Diffstat (limited to 'src/libcharon/plugins/smp/smp.c')
-rw-r--r-- | src/libcharon/plugins/smp/smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/plugins/smp/smp.c b/src/libcharon/plugins/smp/smp.c index 7bc17008b..04bf382ed 100644 --- a/src/libcharon/plugins/smp/smp.c +++ b/src/libcharon/plugins/smp/smp.c @@ -767,7 +767,7 @@ plugin_t *smp_plugin_create() } unlink(unix_addr.sun_path); - old = umask(~(S_IRWXU | S_IRWXG)); + old = umask(S_IRWXO); if (bind(this->socket, (struct sockaddr *)&unix_addr, sizeof(unix_addr)) < 0) { DBG1(DBG_CFG, "could not bind XML socket: %s", strerror(errno)); |