Skip to content

Command-line parsing is broken if compiled with TINI_MINIMAL #217

@jeffdcarter

Description

@jeffdcarter

If tini is compiled with TINI_MINIMAL, the command line parser is bypassed, and it doesn't skip past the "--" that gets passed in by docker --init. This is because getopt() is never called in this case.

This causes docker run to always fail with "exec: --: no such file or directory"

I only discovered this because this is apparently how it is built in this ancient rpm: docker-1.13.1-53.git774336d.el7.centos.x86_64.rpm from CentOS Atomic. Installing a more up-to-date docker rpm that builds it correctly it works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions