aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-07-07 14:24:38 +0000
committerLaurent Bercot <ska@appnovation.com>2023-07-07 14:24:38 +0000
commit7934949532ac6bec4f810f74c806d2620ce37ff0 (patch)
tree091672c11314cfefd957f00a3c3123d335bfd133 /src
parent9ada8b22001c4b788c98ebb872fad1b7bb012c48 (diff)
downloadmdevd-7934949532ac6bec4f810f74c806d2620ce37ff0.tar.gz
Prepare for 0.1.6.3 ; use open2() safe wrapper
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r--src/mdevd/mdevd-coldplug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mdevd/mdevd-coldplug.c b/src/mdevd/mdevd-coldplug.c
index 886a747..6edf3fc 100644
--- a/src/mdevd/mdevd-coldplug.c
+++ b/src/mdevd/mdevd-coldplug.c
@@ -61,7 +61,7 @@ static int scan_subdir (int fdat, char const *pathat, char const *list)
static int scan_dir (char const *path, int add_devices)
{
DIR *dir ;
- int fdpath = open(path, O_RDONLY | O_DIRECTORY) ;
+ int fdpath = open2(path, O_RDONLY | O_DIRECTORY) ;
if (fdpath < 0) return 0 ;
dir = fdopendir(fdpath) ;
if (!dir) strerr_diefu2sys(111, "fdopendir ", path) ;