Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions internal/ldconfig/ldconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func createLdsoconfdFile(pattern string, dirs ...string) error {
// files that refer to the directory.
func (l *Ldconfig) getLdsoconfDirectories(configFilePath string) (map[string]struct{}, error) {
ldconfigDirs := make(map[string]struct{})
for _, d := range l.getSystemSerachPaths() {
for _, d := range l.getSystemSearchPaths() {
ldconfigDirs[d] = struct{}{}
}

Expand Down Expand Up @@ -253,9 +253,9 @@ func (l *Ldconfig) getLdsoconfDirectories(configFilePath string) (map[string]str
return ldconfigDirs, nil
}

func (l *Ldconfig) getSystemSerachPaths() []string {
func (l *Ldconfig) getSystemSearchPaths() []string {
if l.isDebianLikeContainer {
debianSystemSearchPaths()
return debianSystemSearchPaths()
}
return nonDebianSystemSearchPaths()
}
Expand Down