diff options
author | Jakob Unterwurzacher | 2019-01-05 14:12:00 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2019-01-05 14:17:51 +0100 |
commit | ad15ad99856f90f3a72be4bd22ce44338645c963 (patch) | |
tree | adf4958eaad373c27d790a36c1bcb8d758eebe43 /internal/exitcodes/exitcodes.go | |
parent | 5055f39bd534b1f13257f95ffdc28575b9b2e3ed (diff) |
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.
Diffstat (limited to 'internal/exitcodes/exitcodes.go')
-rw-r--r-- | internal/exitcodes/exitcodes.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 |