summaryrefslogtreecommitdiff
path: root/src/shared/install.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-05-13 16:40:53 +0200
committerLennart Poettering <lennart@poettering.net>2014-05-13 16:40:53 +0200
commitead349509e325aad720bb0349521a9e56e2ac7c0 (patch)
tree1ce3f3140ffde0828f77f8c2438825e36dfdd3a8 /src/shared/install.c
parent85c08dc013f9f99b58bc9b79284af0b35304237b (diff)
replace more dup() by F_DUPFD_CLOEXEC
Diffstat (limited to 'src/shared/install.c')
-rw-r--r--src/shared/install.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/install.c b/src/shared/install.c
index acfba25b24..9ce94035b9 100644
--- a/src/shared/install.c
+++ b/src/shared/install.c
@@ -332,7 +332,7 @@ static int remove_marked_symlinks(
int q, cfd;
deleted = false;
- cfd = dup(fd);
+ cfd = fcntl(fd, F_DUPFD_CLOEXEC, 3);
if (cfd < 0) {
r = -errno;
break;