summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2017-03-29 16:54:44 +0100
committerBryn M. Reeves <bmr@redhat.com>2017-03-29 16:54:44 +0100
commitb5252a51a5d041a94e712d804a506e94c9a68893 (patch)
tree7c200c509ce27b214a80e5ff603f3bc364b197d9
parent481a522dd76baaa36b9e903dcd23d66be0b6754a (diff)
downloadlvm2-b5252a51a5d041a94e712d804a506e94c9a68893.tar.gz
dmfilemapd: pass correct dirp to closedir()
-rw-r--r--daemons/dmfilemapd/dmfilemapd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemons/dmfilemapd/dmfilemapd.c b/daemons/dmfilemapd/dmfilemapd.c
index dec74ec4b..fae6a1052 100644
--- a/daemons/dmfilemapd/dmfilemapd.c
+++ b/daemons/dmfilemapd/dmfilemapd.c
@@ -229,13 +229,13 @@ static int _is_open(const char *path)
if (!pid)
continue;
if (_is_open_in_pid(pid, path)) {
- if (closedir(pid_d))
+ if (closedir(proc_d))
log_sys_error("closedir", DEFAULT_PROC_DIR);
return 1;
}
}
- if (closedir(pid_d))
+ if (closedir(proc_d))
log_sys_error("closedir", DEFAULT_PROC_DIR);
return 0;