Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

inject argc, argv, environ #3607

Closed
markus2330 opened this issue Dec 24, 2020 · 1 comment · Fixed by #3651
Closed

inject argc, argv, environ #3607

markus2330 opened this issue Dec 24, 2020 · 1 comment · Fixed by #3651
Assignees

Comments

@markus2330
Copy link
Contributor

For the FUSE binding we need some way to inject argc, argv, environ to be used by gopts.

Ideally, this would be fixed together with #2764, so that it is also ensured that gopts is present for FUSE.

@kodebach
Copy link
Member

In created a quick hacky workaround solution in #3608. This won't be the final solution for various reasons, but it should allow @dev2718 to keep working on their FUSE implementation.

In the end the goal is to integrate the functionality into a new version of kdbOpen (together with kdbEnsure). But I don't know when I will find time to do that, or how long it will take to get it done (could be weeks). So I created this hacky solution for.

@dev2718 You should probably just merge #3608 into a branch of your fork and use it until the permanent solution is done. This is how you use it:

custom_argv = [ "get", "-v", "user:/"]
custom_envp = []
db.setupGOpts (base_key, len(custom_argv), custom_argv, custom_envp)

@markus2330 markus2330 linked a pull request Feb 16, 2021 that will close this issue
20 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants