Correctly use BASEDIR when checking for src component #404
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BASEDIR is used to check to ensure we check sources in the right place as outlined by ba040f8#diff-7d334bdfcbfcd070ed2c6a35ada63787.
Problem is that when this function is called, BASEDIR is empty because we set it to empty while reading conffile. This change ensures that if basedir is specified in conffile, that is used, if not then command line argument
is checked and if that is not present as well then we default to /. Came across this at iocage/iocage#892.