Skip to content

provide an option to set argv[0] #91

Closed

Description

@cgwalters

In some cases, programs vary behavior based on argv[0], but we currently do:

  if (execvp (argv[0], argv) == -1)

requiring them to be the same. We should add --argv0 /usr/bin/blah or so.

Activity

  1. cgwalters commented on Aug 12, 2016

    @cgwalters
    CollaboratorAuthor

    (I hit this when porting rpm-ostree code to use bwrap that had an API that took argv0 and char **argv separately, and while I think we can just conflate them, there's no reason not to support this)

  2. rhatdan commented on Aug 12, 2016

    @rhatdan
    Member

    Sounds reasonable.

  3. added 5 commits that reference this issue on Sep 27, 2023
    8388314
    417997c
    5a6eccc
    e280878
    4303430
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions