diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-12 04:38:45 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-14 04:52:49 +0900 |
| commit | 99ac96511bed17f48d908db3d00a1f48579ba011 (patch) | |
| tree | 30d404efb7256c9f053f64192068637d6b846db4 /hst/config.go | |
| parent | e99d7affb0c128fa82722f9b3d79c99b5e5918cd (diff) | |
hst/fs: interface filesystem config
This allows mount points to be represented by different underlying structs.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/config.go')
| -rw-r--r-- | hst/config.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hst/config.go b/hst/config.go index 73fb21b8..c34ecb1e 100644 --- a/hst/config.go +++ b/hst/config.go @@ -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())) |
