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 Jun 11, 2024
1 parent 94a50f2 commit 06aa85a
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 06aa85a

Please sign in to comment.