You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using ~ in the config file for oasis-node does not work, for example:
datadir: ~/node/data
In this case badger will create a new directory called ~ in cwd instead of interpreting the symbol as home and then oasis-node will crash saying it cannot access ~/node/data directory. One can image what a rm -r ~ would then result without escaping the ~ symbol in 😉
EXPECTED RESULTS
I suggest we throw error when parsing the config file, if any of the paths contain ~ symbol. Are there any other special characters in posix paths we should avoid?
The text was updated successfully, but these errors were encountered:
SUMMARY
Using
~
in the config file foroasis-node
does not work, for example:In this case badger will create a new directory called
~
in cwd instead of interpreting the symbol as home and thenoasis-node
will crash saying it cannot access~/node/data
directory. One can image what arm -r ~
would then result without escaping the~
symbol in 😉EXPECTED RESULTS
I suggest we throw error when parsing the config file, if any of the paths contain
~
symbol. Are there any other special characters in posix paths we should avoid?The text was updated successfully, but these errors were encountered: