Skip to content

Commit f70f1ad

Browse files
committed
interface conversion: interface {} is *syscall.Stat_t, not *unix.Stat_t
1 parent 89efed6 commit f70f1ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/csplugin/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func pluginIsValid(path string) error {
118118
if err != nil {
119119
return fmt.Errorf("while looking up the current uid: %w", err)
120120
}
121-
stat := details.Sys().(*unix.Stat_t)
121+
stat := details.Sys().(*syscall.Stat_t)
122122
if stat.Uid != currentUID {
123123
return fmt.Errorf("plugin at %s is not owned by user '%s'", path, currentUser.Username)
124124
}

0 commit comments

Comments
 (0)