1
0
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:
Bryn M. Reeves 2017-03-29 17:16:34 +01:00
parent 70bb726678
commit 7db51a6bed

View File

@ -593,6 +593,7 @@ check_unlinked:
getpid(), fm->fd);
return 0;
}
link_buf[len] = '\0';
/*
* Try to re-open the file, from the path now reported in /proc/pid/fd.