FF-1661: Fixed has hardlink returning false if there is only one hard link

This commit is contained in:
John Andrews
2024-07-02 14:26:50 +12:00
parent 81911bc608
commit 9c9ec95790
3 changed files with 2 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ public class HasHardLinks: Node
int linkCount;
if (int.TryParse(output.Trim(), out linkCount))
{
if (linkCount > 1)
if (linkCount > 0)
{
args.Logger?.ILog("The file has hard links.");
return true;
@@ -181,7 +181,7 @@ public class HasHardLinks: Node
int linkCount;
if (int.TryParse(output.Trim(), out linkCount))
{
if (linkCount > 1)
if (linkCount > 0)
{
args.Logger?.ILog("The file has hard links.");
return true;