aboutsummaryrefslogtreecommitdiffstats
path: root/common/sysutils.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-06-08 14:18:02 +0000
committerWerner Koch <[email protected]>2016-06-08 14:18:02 +0000
commit8127043d549a5843ea1ba2dc6da4906fc2258d53 (patch)
treec6b126885f2d3b1ee15b9e53009ec75f5cf86cf8 /common/sysutils.c
parentw32: Fix recent build regression. (diff)
downloadgnupg-8127043d549a5843ea1ba2dc6da4906fc2258d53.tar.gz
gnupg-8127043d549a5843ea1ba2dc6da4906fc2258d53.zip
Explicitly restrict socket permissions.
* agent/gpg-agent.c (create_server_socket): Call chmod before listen. * scd/scdaemon.c (create_server_socket): Ditto. * dirmngr/dirmngr.c (main): Ditto. -- This is just in case of a improperly set umask. Note that a connect requires a write permissions.
Diffstat (limited to 'common/sysutils.c')
-rw-r--r--common/sysutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/sysutils.c b/common/sysutils.c
index d82eb8e26..0f7b7f5cf 100644
--- a/common/sysutils.c
+++ b/common/sysutils.c
@@ -628,7 +628,7 @@ gnupg_mkdir (const char *name, const char *modestr)
}
-/* A wrapper around mkdir which takes a string for the mode argument.
+/* A wrapper around chmod which takes a string for the mode argument.
This makes it easier to handle the mode argument which is not
defined on all systems. The format of the modestring is the same
as for gnupg_mkdir. */