diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-07-07 14:24:38 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2023-07-07 14:24:38 +0000 |
| commit | 7934949532ac6bec4f810f74c806d2620ce37ff0 (patch) | |
| tree | 091672c11314cfefd957f00a3c3123d335bfd133 /src | |
| parent | 9ada8b22001c4b788c98ebb872fad1b7bb012c48 (diff) | |
| download | mdevd-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.c | 2 |
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) ; |
