From ad15ad99856f90f3a72be4bd22ce44338645c963 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 5 Jan 2019 14:12:00 +0100 Subject: main: ensure fds 0,1,2 are always open The Go stdlib, as well as the gocryptfs code, relies on the fact that fds 0,1,2 are always open. See https://github.com/rfjakob/gocryptfs/issues/320 for details. --- internal/exitcodes/exitcodes.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/exitcodes/exitcodes.go') diff --git a/internal/exitcodes/exitcodes.go b/internal/exitcodes/exitcodes.go index c4e18df..cd36988 100644 --- a/internal/exitcodes/exitcodes.go +++ b/internal/exitcodes/exitcodes.go @@ -70,6 +70,8 @@ const ( TrezorError = 28 // ExcludeError - an error occurred while processing "-exclude" ExcludeError = 29 + // DevNull means that /dev/null could not be opened + DevNull = 30 ) // Err wraps an error with an associated numeric exit code -- cgit v1.2.3