Skip to content

Commit

Permalink
interface conversion: interface {} is *syscall.Stat_t, not *unix.Stat_t
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Aug 22, 2024
1 parent 89efed6 commit f70f1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/csplugin/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func pluginIsValid(path string) error {
if err != nil {
return fmt.Errorf("while looking up the current uid: %w", err)
}
stat := details.Sys().(*unix.Stat_t)
stat := details.Sys().(*syscall.Stat_t)
if stat.Uid != currentUID {
return fmt.Errorf("plugin at %s is not owned by user '%s'", path, currentUser.Username)
}
Expand Down

0 comments on commit f70f1ad

Please sign in to comment.