Skip to content

Commit d2bbb04

Browse files
committed
interface conversion: interface {} is *syscall.Stat_t, not *unix.Stat_t
1 parent 7e74b42 commit d2bbb04

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
@@ -110,7 +110,7 @@ func pluginIsValid(path string) error {
110110
if err != nil {
111111
return fmt.Errorf("while looking up the current uid: %w", err)
112112
}
113-
stat := details.Sys().(*unix.Stat_t)
113+
stat := details.Sys().(*syscall.Stat_t)
114114
if stat.Uid != currentUID {
115115
return fmt.Errorf("plugin at %s is not owned by user '%s'", path, currentUser.Username)
116116
}

0 commit comments

Comments
 (0)