mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
dmfilemapd: always terminate link buffer after readlink(2) (coverity)
This commit is contained in:
parent
70bb726678
commit
7db51a6bed
@ -593,6 +593,7 @@ check_unlinked:
|
|||||||
getpid(), fm->fd);
|
getpid(), fm->fd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
link_buf[len] = '\0';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Try to re-open the file, from the path now reported in /proc/pid/fd.
|
* Try to re-open the file, from the path now reported in /proc/pid/fd.
|
||||||
|
Loading…
Reference in New Issue
Block a user