Skip to content

Conversation

dveeden
Copy link

@dveeden dveeden commented Apr 22, 2018

One can easily use -c to specify the config file by mistake.
-c is connect-string. -f is config file.

Confusing these is bad enough, but ndb_mgmd often accepts a
bogus value for the -c option (e.g -c /etc/ndb/config.ini)

This commit only works if the -c option gets a full path, it won't work for relative paths. Feel free to throw my commit away and implement a different fix for this issue.

One can easily use -c to specify the config file by mistake.
-c is connect-string. -f is config file.

Confusing these is bad enough, but ndb_mgmd often accepts a
bogus value for the -c option (e.g -c /etc/ndb/config.ini)
@dveeden dveeden changed the title Disallow connect string to start with '/' NDB: Disallow connect string to start with '/' Apr 22, 2018
@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Please confirm this code is submitted under the terms of the OCA (Oracle's Contribution Agreement) you have previously signed by cutting and pasting the following text as a comment:
"I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it."
Thanks

@dveeden
Copy link
Author

dveeden commented Apr 23, 2018

I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Your code has been assigned to an internal queue. Please follow
bug http://bugs.mysql.com/bug.php?id=90582 for updates.
Thanks

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

Successfully merging this pull request may close these issues.

2 participants