Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func getOnDiskLocationMetadata(path string) *certgraphapi.OnDiskLocationWithMeta
},
}

// Get permissions and uid/gid (omit if error occured)
// Get permissions and uid/gid (omit if error occurred)
if info, err := os.Stat(path); err == nil {
ret.Permissions = info.Mode().Perm().String()
if statt, ok := info.Sys().(*syscall.Stat_t); ok {
Expand All @@ -33,7 +33,7 @@ func getOnDiskLocationMetadata(path string) *certgraphapi.OnDiskLocationWithMeta
}
}

// Get selinux label (omit if error occured)
// Get selinux label (omit if error occurred)
if label, err := selinux.FileLabel(path); err == nil {
ret.SELinuxOptions = label
}
Expand Down