all repos — searchix @ 1d518f42e04712c84dfc168cc7a286aabb56e2ed

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: limit file operations using os.Root

Alan Pearce
commit

1d518f42e04712c84dfc168cc7a286aabb56e2ed

parent

dec2c516100350a78f0b7116bc6f9d76325e7760

1 file changed, 1 insertion(+), 0 deletions(-)

changed files
M internal/config/config.gointernal/config/config.go
@@ -111,6 +111,7 @@ func GetConfig(filename string, log *log.Logger) (*Config, error) {
config := DefaultConfig if filename != "" { log.Debug("reading config", "filename", filename) + //nolint:forbidigo // need to read config file from anywhere f, err := os.Open(filename) if err != nil { return nil, fault.Wrap(err, fmsg.With("reading config failed"))