aboutsummaryrefslogtreecommitdiff
path: root/src/im-sandbox.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-06-27 17:20:22 +0200
committerThomas White <taw@physics.org>2018-06-28 11:27:49 +0200
commite1bc2d84394f4d324241ddfc274b4c0c7d96523e (patch)
treeeae17da427247ef88866c302ea4b208cc1624d50 /src/im-sandbox.c
parent19e227bd6e27c442081d5a35ddeeb557e3ea56b6 (diff)
indexamajig: Tighten permissions on temporary folder
Diffstat (limited to 'src/im-sandbox.c')
-rw-r--r--src/im-sandbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c
index 91479414..3dedf3f3 100644
--- a/src/im-sandbox.c
+++ b/src/im-sandbox.c
@@ -623,7 +623,7 @@ static void start_worker_process(struct sandbox *sb, int slot)
exit(1);
}
- r = mkdir(tmp, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
+ r = mkdir(tmp, S_IRWXU);
if ( r ) {
ERROR("Failed to create temporary folder: %s\n",
strerror(errno));
@@ -935,7 +935,7 @@ void create_sandbox(struct index_args *iargs, int n_proc, char *prefix,
return;
}
- r = mkdir(sb->tmpdir, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
+ r = mkdir(sb->tmpdir, S_IRWXU);
if ( r ) {
ERROR("Failed to create temporary folder: %s\n",
strerror(errno));