Skip to content

encfsctl decode takes only 99 arguments #574

Closed

Description

@bartekbrak

encfsctl decode [--extpass=prog] rootdir [encoded name ...] will take only 99 arguments for encoded nameand 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.

Activity

  1. rfjakob commented on Jan 14, 2020

    @rfjakob
    Collaborator

    xargs -n 90

  2. bartekbrak commented on Jan 15, 2020

    @bartekbrak
    Author

    This is a workaround, not a solution. Is there a reason to limit the amount of CLI args?

  3. doj commented on Jul 3, 2023

    @doj

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions