Skip to content
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

Revert changes made for Windows 10/11 mkdir -p failure #1143

Closed
TinCanTech opened this issue May 17, 2024 · 0 comments · Fixed by #1145
Closed

Revert changes made for Windows 10/11 mkdir -p failure #1143

TinCanTech opened this issue May 17, 2024 · 0 comments · Fixed by #1145

Comments

@TinCanTech
Copy link
Collaborator

TinCanTech commented May 17, 2024

#1073, #1075 and more..

Improve the safe-guard made here:

# Check for broken administrator access
# https://github.com/OpenVPN/easy-rsa/issues/1072
[ -d "$HOME" ] || access_denied "-d HOME"
win_tst_d="$HOME"/easyrsa-write-test
# Required tests
mkdir "$win_tst_d" 2>/dev/null || access_denied "mkdir"
[ -d "$win_tst_d" ] || access_denied "-d"
echo 1 >"$win_tst_d"/1 2>/dev/null || access_denied "write"
[ -f "$win_tst_d"/1 ] || access_denied "-f"
rm -rf "$win_tst_d" 2>/dev/null || access_denied "rm"
[ ! -d "$win_tst_d" ] || access_denied "! -d"
unset -v win_tst_d
unset -f access_denied

If Windows does not work then there is no point going further than here.

Revert:

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

Successfully merging a pull request may close this issue.

1 participant