mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-10 20:05:55 +02:00
interface conversion: interface {} is *syscall.Stat_t, not *unix.Stat_t
This commit is contained in:
parent
89efed68b0
commit
f70f1ad2af
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue