cbwin icon indicating copy to clipboard operation
cbwin copied to clipboard

Added path resolution to support unsafe access to bash filesystem.

Open aHooder opened this issue 9 years ago • 1 comments

More detailed explanation:

  • Added the environment variable: WSL_PATH to bash. This is declared when outbash launches bash. It contains the location of the bash environment, which is %LOCALAPPDATA%\lxss. If your bash environment is located elsewhere, the code will have to be changed and recompiled. A compile-time variable might be added in the future.
  • The run commands now check if any argument is a path and replaces it with the absolute path if that's the case.
  • This does not replace relative or absolute paths for any argument consisting of more than just a path.

aHooder avatar Sep 02 '16 21:09 aHooder

I'm a little busy, I'll probably take a look this WE.

xilun avatar Sep 08 '16 17:09 xilun