Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querying given data-dir parameter in runtime #4

Closed
c4milo opened this issue Dec 15, 2015 · 3 comments
Closed

Querying given data-dir parameter in runtime #4

c4milo opened this issue Dec 15, 2015 · 3 comments

Comments

@c4milo
Copy link

c4milo commented Dec 15, 2015

Is there anyway to know what was the data-dir parameter passed during compilation? it would be very useful to have it around somewhere, especially for tooling in other programming languages trying to do user lookups without linking with C libraries.

@aperezdc
Copy link
Owner

There is no direct way. An idea could be to add a small tool which allows querying the build configuration.

aperezdc added a commit that referenced this issue Dec 15, 2015
@aperezdc
Copy link
Owner

I have just pushed a commit to master which works as follows:

% ./nss-altfiles-config datadir
/etc/alt
% ./nss-altfiles-config modulename
altfiles

This should be enough for scripting e.g. using a shell.

@c4milo
Copy link
Author

c4milo commented Dec 16, 2015

Nice! Thanks @aperezdc for addressing this so quickly.

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

No branches or pull requests

2 participants