From 295d432175292dbaef572093d784aab55f5c0b8f Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 15 Dec 2018 17:09:38 +0100 Subject: 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 . --- Documentation/MANPAGE.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Documentation') diff --git a/Documentation/MANPAGE.md b/Documentation/MANPAGE.md index baadb25..5ebb0b4 100644 --- a/Documentation/MANPAGE.md +++ b/Documentation/MANPAGE.md @@ -262,8 +262,13 @@ you are using Go 1.6+. In mode "auto", gocrypts chooses the faster option. #### -passfile string -Read password from the specified file. This is a shortcut for -specifying '-extpass="/bin/cat -- FILE"'. +Read password from the specified file. A warning will be printed if there +is more than one line, and only the first line will be used. A single +trailing newline is allowed and does not cause a warning. + +Before gocryptfs v1.7, using `-passfile` was equivant to writing +`-extpass="/bin/cat -- FILE"`. +gocryptfs v1.7 and later directly read the file without invoking `cat`. #### -passwd Change the password. Will ask for the old password, check if it is -- cgit v1.2.3