From 0a9e761cb9181c7167954c3dd3901df95cbd685b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Noack?= Date: Fri, 27 Aug 2021 09:41:27 +0200 Subject: [PATCH] Fix error message capitalization --- landlock/restrict.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/landlock/restrict.go b/landlock/restrict.go index 9dad5ee..247509a 100644 --- a/landlock/restrict.go +++ b/landlock/restrict.go @@ -30,7 +30,7 @@ func restrictPaths(c Config, opts ...PathOpt) error { fd, err := ll.LandlockCreateRuleset(&rulesetAttr, 0) if err != nil { if errors.Is(err, syscall.ENOSYS) || errors.Is(err, syscall.EOPNOTSUPP) { - err = errors.New("Landlock is not supported by kernel or not enabled at boot time") + err = errors.New("landlock is not supported by kernel or not enabled at boot time") } if errors.Is(err, syscall.EINVAL) { err = errors.New("unknown flags, unknown access, or too small size")