forked from security/hakurei
hst/fs: interface filesystem config
This allows mount points to be represented by different underlying structs. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -66,7 +66,7 @@ type ExtraPermConfig struct {
|
||||
}
|
||||
|
||||
func (e *ExtraPermConfig) String() string {
|
||||
if e.Path == nil {
|
||||
if e == nil || e.Path == nil {
|
||||
return "<invalid>"
|
||||
}
|
||||
buf := make([]byte, 0, 5+len(e.Path.String()))
|
||||
|
||||
Reference in New Issue
Block a user