Skip to content

Commit

Permalink
refactor(sysctl): rename exclude with proper name
Browse files Browse the repository at this point in the history
  • Loading branch information
Wabri committed May 29, 2024
1 parent 1977016 commit ae0eab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/sysctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func CollectGlobalSysctls(excludeDirs []string) {

// getSysctlFilelist builds a file list with all available sysctl conf files
// following symlinks
func getSysctlFilelist(dirs []string, fileList map[string]string, exclude bool) {
func getSysctlFilelist(dirs []string, fileList map[string]string, excludeSymLinks bool) {
for _, file := range getAllSysctlFiles(dirs) {
// check all config files mentioned in /etc/sysctl.conf and
// the sysctl.conf(5) man page
Expand All @@ -117,7 +117,7 @@ func getSysctlFilelist(dirs []string, fileList map[string]string, exclude bool)
continue
}
fileList[origFile] = file
if exclude {
if excludeSymLinks {
fileList[file] = origFile
}
}
Expand Down

0 comments on commit ae0eab8

Please sign in to comment.