landdown
Simple Sandboxing for shell scripts.
git clone git://mccd.space/landdowncommit d173de03a6e6fcfb6e0b4f05e054c0c471dba2bd
parent 02dfbe6622c0a5f189390fcdd96e9e34048ba6e6
Author: Marc <marc@coquand.email>
Date: Thu, 2 Apr 2026 21:22:05 +0200
typo
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.go b/main.go
@@ -130,7 +130,7 @@ func main() {
// Create a memfile that is the content of the script
// we actually want to run, execute the script with that.
if len(stdinData) > 0 {
- fd, _ := unix.MemfdCreate("landdown", 0)
+ fd, _ := unix.MemfdCreate("landdown", 0)
f := os.NewFile(uintptr(fd), "script")
f.Write(stdinData)
// Rewind