| Age | Commit message (Collapse) | Author | 
 | 
From the comment:
// CheckTrailingGarbage tries to read one byte from stdin and exits with a
// fatal error if the read returns any data.
// This is meant to be called after reading the password, when there is no more
// data expected. This helps to catch problems with third-party tools that
// interface with gocryptfs.
 | 
 | 
 | 
 | 
...and while we are at it, also filenames starting with "-".
 | 
 | 
...and exit if it is not zero.
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
tlog is used heavily everywhere and deserves a shorter name.
Renamed using sed magic, without any manual rework:
   find * -type f -exec sed -i 's/toggledlog/tlog/g' {} +
 | 
 | 
We want to use colored error messages also outside of main,
so let's handle it in the logging package.
The fatal logger now automatically prints red.
 | 
 | 
* Supports stdin
* Add tests for extpass and stdin
As per user request at https://github.com/rfjakob/gocryptfs/issues/30
 |