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 Jul 22, 2024
1 parent 956ea1b commit 42a586e
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 42a586e

Please sign in to comment.