Skip to content

Commit

Permalink
Fix Linux UserAccountCollector.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfs committed Jan 6, 2020
2 parents ccc428f + b5dbb02 commit cf81a77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Lib/Collectors/FileSystemCollector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public override void ExecuteInternal()

Action<string> IterateOn = Path =>
{
Log.Verbose("Started parsing {0}", Path);
FileSystemObject obj = FilePathToFileSystemObject(Path, downloadCloud, INCLUDE_CONTENT_HASH);
if (obj != null)
{
Expand Down
4 changes: 2 additions & 2 deletions Lib/Collectors/UserAccountCollector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private void ExecuteLinux()
accountDetails[username] = tempDict;
}

var result = ExternalCommandRunner.RunExternalCommand("grep", "'^sudo:.*$' /etc/group | cut - d: -f4");
var result = ExternalCommandRunner.RunExternalCommand("grep", "'^sudo:.*$' /etc/group | cut -d: -f4");

foreach (var _line in result.Split('\n'))
{
Expand Down Expand Up @@ -399,4 +399,4 @@ private void ExecuteOsX()
}
}
}
}
}

0 comments on commit cf81a77

Please sign in to comment.