-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Fix OptPath
options with empty strings
#16029
Fix OptPath
options with empty strings
#16029
Conversation
Before patch:
|
After Patch:
|
Will go ahead and land this now, looks to be working as expected. |
Release NotesA bug existed in the |
This fixes an issue when any
OptPath
option is set to an empty string. Before this fix,#normalize
was callingFile.expand_path("")
, which returns the current working directory. I assume it is not what we expect when setting this kind of option to an empty string.For example, it breaks the
scanner/postgres/postgres_login
module:After this fix:
Note that unsetting options lead to a confusing output of the
show options
/options
commands. The default value is displayed but the actual option value is stillnil
. This is something we are aware of and will be fixed later.