summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2018-03-14 10:29:47 +0200
committerGitHub <noreply@github.com>2018-03-14 10:29:47 +0200
commit804a7e60d746adf95001d58ee25062c8f4157928 (patch)
tree8591d9e64041bd44632a0b9e1a5fd8d25b520ec6 /mysys
parent09b25f85966f44aae933e86b84b4ebe59ded47c3 (diff)
parentd3c0e34bdc99ee57fd5d63237d29531d1afdef2b (diff)
downloadmariadb-git-804a7e60d746adf95001d58ee25062c8f4157928.tar.gz
Merge pull request #637 from grooverdan/5.5-galera
MDEV-8743: use CLOEXEC to protect mariadb files from sst script touching
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_symlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_symlink.c b/mysys/my_symlink.c
index 12959f1f24a..f2dd2e596ff 100644
--- a/mysys/my_symlink.c
+++ b/mysys/my_symlink.c
@@ -236,7 +236,7 @@ const char *my_open_parent_dir_nosymlinks(const char *pathname, int *pdfd)
return pathname + (s - buf);
}
- fd = openat(dfd, s, O_NOFOLLOW | O_PATH);
+ fd = openat(dfd, s, O_NOFOLLOW | O_PATH | O_CLOEXEC);
if (fd < 0)
goto err;