dtfile: coverity CIDs 88363,88405,89140,89612; insecure readlink

This commit is contained in:
Jon Trulson
2018-04-01 13:43:48 -06:00
parent b4c4fb594d
commit 7fa35c29c4
3 changed files with 4 additions and 4 deletions

View File

@@ -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] != '/')