summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-07-29 20:34:56 +0200
committerFlorian Dold <florian@dold.me>2021-07-29 20:34:56 +0200
commitce4daddca0ef0b455ed6a09fc9e4478f41d72914 (patch)
treea4459dd5a1adb3b3214567a789927557dbda0cb2 /src
parent0d06ab5bb990775f95dfb4678655d2cf9ab2b26f (diff)
downloadexchange-ce4daddca0ef0b455ed6a09fc9e4478f41d72914.tar.gz
exchange-ce4daddca0ef0b455ed6a09fc9e4478f41d72914.tar.bz2
exchange-ce4daddca0ef0b455ed6a09fc9e4478f41d72914.zip
secmod client dir needs group write permissions
Diffstat (limited to 'src')
-rw-r--r--src/util/taler-exchange-secmod-eddsa.c3
-rw-r--r--src/util/taler-exchange-secmod-rsa.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/util/taler-exchange-secmod-eddsa.c b/src/util/taler-exchange-secmod-eddsa.c
index 48dcdf71..5ca50f06 100644
--- a/src/util/taler-exchange-secmod-eddsa.c
+++ b/src/util/taler-exchange-secmod-eddsa.c
@@ -1549,7 +1549,8 @@ run (void *cls,
}
/* Set sticky group bit, so that clients will be writeable by the current service. */
if (0 != chmod (client_dir,
- S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_ISGID))
+ S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IXGRP
+ | S_ISGID))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Can't set permissions for client directory (%s)\n",
diff --git a/src/util/taler-exchange-secmod-rsa.c b/src/util/taler-exchange-secmod-rsa.c
index 1307b8f4..edb3aac2 100644
--- a/src/util/taler-exchange-secmod-rsa.c
+++ b/src/util/taler-exchange-secmod-rsa.c
@@ -1923,7 +1923,8 @@ run (void *cls,
}
/* Set sticky group bit, so that clients will be writeable by the current service. */
if (0 != chmod (client_dir,
- S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_ISGID))
+ S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IXGRP
+ | S_ISGID))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Can't set permissions for client directory (%s)\n",