Commit d3d68bf9 authored by Eric Bollengier's avatar Eric Bollengier
Browse files

Fix #9292 about file descriptor leak with the HonorNoDumpFlag fileset option

parent 51e70c87
......@@ -231,7 +231,7 @@ static bool no_dump(JCR *jcr, FF_PKT *ff_pkt)
int attr;
int fd = -1;
if (ff_pkt->flags & FO_HONOR_NODUMP) {
int fd = open(ff_pkt->fname, O_RDONLY);
fd = open(ff_pkt->fname, O_RDONLY|O_CLOEXEC);
if (fd < 0) {
Dmsg2(50, "Failed to open file: %s err: %d\n",
ff_pkt->fname, errno);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment