mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
dmfilemapd: pass correct dirp to closedir()
This commit is contained in:
parent
481a522dd7
commit
b5252a51a5
@ -229,13 +229,13 @@ static int _is_open(const char *path)
|
|||||||
if (!pid)
|
if (!pid)
|
||||||
continue;
|
continue;
|
||||||
if (_is_open_in_pid(pid, path)) {
|
if (_is_open_in_pid(pid, path)) {
|
||||||
if (closedir(pid_d))
|
if (closedir(proc_d))
|
||||||
log_sys_error("closedir", DEFAULT_PROC_DIR);
|
log_sys_error("closedir", DEFAULT_PROC_DIR);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (closedir(pid_d))
|
if (closedir(proc_d))
|
||||||
log_sys_error("closedir", DEFAULT_PROC_DIR);
|
log_sys_error("closedir", DEFAULT_PROC_DIR);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user