config: prevent use of windows reserved names in config file name

This commit is contained in:
albertony
2021-04-08 20:59:15 +02:00
parent 23a0d4a1e6
commit f2d3264054
4 changed files with 77 additions and 4 deletions

View File

@ -13,3 +13,8 @@ import "os"
// Under both Unix and Windows this will allow open files to be
// renamed and or deleted.
var OpenFile = os.OpenFile
// IsReserved checks if path contains a reserved name
func IsReserved(path string) error {
return nil
}