dtfile: coverity CIDs 88363,88405,89140,89612; insecure readlink
This commit is contained in:
@@ -236,7 +236,7 @@ _DtFollowLink (
|
||||
|
||||
while ((link_len = readlink(file, link_path, MAXPATHLEN)) > 0)
|
||||
{
|
||||
link_path[link_len] = '\0';
|
||||
link_path[link_len-1] = 0;
|
||||
|
||||
/* Force the link to be an absolute path, if necessary */
|
||||
if (link_path[0] != '/')
|
||||
|
||||
Reference in New Issue
Block a user