diff options
| author | Jakob Unterwurzacher | 2018-12-15 17:09:38 +0100 | 
|---|---|---|
| committer | Jakob Unterwurzacher | 2018-12-15 17:09:38 +0100 | 
| commit | 295d432175292dbaef572093d784aab55f5c0b8f (patch) | |
| tree | d5db468806d211d0ea5bbd589dad3a0a337de714 /gocryptfs-xray | |
| parent | b29ee62749244d1985a71f8df37a1582d9e790c9 (diff) | |
passfile: directly read file instead of invoking cat
Allows better error handling, gets rid of the call to an
external program, and fixes https://github.com/rfjakob/gocryptfs/issues/278 .
Diffstat (limited to 'gocryptfs-xray')
| -rw-r--r-- | gocryptfs-xray/xray_main.go | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/gocryptfs-xray/xray_main.go b/gocryptfs-xray/xray_main.go index 569776d..74c9fb3 100644 --- a/gocryptfs-xray/xray_main.go +++ b/gocryptfs-xray/xray_main.go @@ -60,7 +60,7 @@ func main() {  func dumpMasterKey(fn string) {  	tlog.Info.Enabled = false -	pw := readpassword.Once("", "") +	pw := readpassword.Once("", "", "")  	masterkey, _, err := configfile.LoadAndDecrypt(fn, pw)  	if err != nil {  		fmt.Fprintln(os.Stderr, err)  | 
