From: Eric Bollengier Date: Thu, 3 Dec 2020 16:45:37 +0000 (+0100) Subject: Add one missing use of O_CLOEXEC in vtape_dev.c X-Git-Tag: Release-11.3.2~806 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3db47b767277ad9ff7e9d9ca9df1f4a749750af9;p=thirdparty%2Fbacula.git Add one missing use of O_CLOEXEC in vtape_dev.c --- diff --git a/bacula/src/stored/vtape_dev.c b/bacula/src/stored/vtape_dev.c index 644b86a75..f68078db7 100644 --- a/bacula/src/stored/vtape_dev.c +++ b/bacula/src/stored/vtape_dev.c @@ -927,7 +927,7 @@ int vtape::d_open(const char *pathname, int uflags) strcpy(lockfile, pathname); strcat(lockfile, ".l"); - lockfd = ::open(lockfile, O_CREAT | O_RDWR | O_LARGEFILE, 0600); + lockfd = ::open(lockfile, O_CREAT | O_RDWR | O_LARGEFILE | O_CLOEXEC, 0600); if (lockfd < 0) { berrno be; Dmsg2(0, "Unable to open vtape device lock %s ERR=%s\n", lockfile, be.bstrerror());