diff options
author | Jakob Unterwurzacher | 2019-03-03 13:25:30 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2019-03-03 13:25:30 +0100 |
commit | cf27037f20723e934320edeff7f8aa356bdca467 (patch) | |
tree | b12428d172325fcfb517af26f7985651ef70e902 /internal/readpassword/passfile_test.go | |
parent | 61940a9c0666eba8be21de4f1cd182912f74f929 (diff) |
Allow multiple -extpass arguments
To support arguments containing spaces, -extpass can now
be passed multiple times.
https://github.com/rfjakob/gocryptfs/issues/289
Diffstat (limited to 'internal/readpassword/passfile_test.go')
-rw-r--r-- | internal/readpassword/passfile_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/readpassword/passfile_test.go b/internal/readpassword/passfile_test.go index 30f976f..cb7fa44 100644 --- a/internal/readpassword/passfile_test.go +++ b/internal/readpassword/passfile_test.go @@ -14,6 +14,7 @@ func TestPassfile(t *testing.T) { {"mypassword.txt", "mypassword"}, {"mypassword_garbage.txt", "mypassword"}, {"mypassword_missing_newline.txt", "mypassword"}, + {"file with spaces.txt", "mypassword"}, } for _, tc := range testcases { pw := readPassFile("passfile_test_files/" + tc.file) |