encfs
encfs copied to clipboard
encfsctl decode takes only 99 arguments
encfsctl decode [--extpass=prog] rootdir [encoded name ...]
will take only 99 arguments for encoded name
and I do sometimes have hundreds.
Observe:
$ find ./encrypted | sed -En 's,.*encrypted/,,p' | \
head -n 99 | \
xargs encfsctl decode ./encrypted # works fine
EncFS Password:^C
$ find ./encrypted | sed -En 's,.*encrypted/,,p' | \
head -n 100 | \
xargs encfsctl decode ./encrypted # too many, breaks
Incorrect number of arguments for command "decode"
$ encfsctl --version
encfsctl version 1.9.2
I can work around this limitation, but it is a bit annoying.
xargs -n 90
This is a workaround, not a solution. Is there a reason to limit the amount of CLI args?
It's probably just as a general safety in the C++ code. I do see a max argument limit of 100 for the decode and encode functions. Should be a simple change to increase this to 1000 or something like that. I don't know what the current limits for a command line in bytes on a modern Linux is. I know 30 years ago it was 32KB or something like that.