encflsctl can't decode files with hyphen "-"
desgua opened this issue · 2 comments
desgua commented
encfsctl can't decode files that have '-' in their name.
Example:
$ encfsctl decode --extpass='secret-tool lookup secret' /home/desgua/encfsroot/ '-2JcGEI1lJib0fPXPPtbAPtAJ'
$ decode: invalid option -- '2'
2020-06-04 16:06:43,411 WARNING getopt error: 63
decode: invalid option -- 'J'
2020-06-04 16:06:43,411 WARNING getopt error: 63
decode: invalid option -- 'c'
2020-06-04 16:06:43,411 WARNING getopt error: 63
decode: invalid option -- 'G'
etc
ikonopistsev commented
You may use:
echo "-2JcGEI1lJib0fPXPPtbAPtAJ" | encfsctl decode --extpass='secret-tool lookup secret' /home/desgua/encfsroot
desgua commented
That solves this issue. Thank you so much!