all repos — legit @ 6e6648e344c889767240a33f42febf9498250131

web frontend for git

unveil: add git executable
Anirudh Oppiliappan x@icyphox.sh
Thu, 22 Dec 2022 11:22:47 +0530
commit

6e6648e344c889767240a33f42febf9498250131

parent

0ed4b29fe0aa3e93557569c6f803eafc5e228a37

2 files changed, 7 insertions(+), 3 deletions(-)

jump to
M main.gomain.go

@@ -23,8 +23,13 @@

if err := UnveilPaths([]string{ c.Dirs.Static, c.Repo.ScanPath, - c.Dirs.Templates}, + c.Dirs.Templates, + }, "r"); err != nil { + log.Fatalf("unveil: %s", err) + } + + if err := Unveil("/usr/local/bin/git", "rx"); err != nil { log.Fatalf("unveil: %s", err) }
M unveil.gounveil.go

@@ -20,8 +20,7 @@ }

func UnveilPaths(paths []string, perms string) error { for _, path := range paths { - err := Unveil(path, perms) - if err != nil { + if err := Unveil(path, perms); err != nil { return err } }