-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
easyrsa_mkdir(): Remove use of 'mkdir -p', use only 'mkdir'
Windows 11 fails to execute 'mkdir.exe -p $foo' and fails to return an error. easyrsa_mkdir() is a simple wrapper function for 'mkdir', which specifically checks that the requested directory is created, without relying on the exit status of 'mkdir.exe'. easyrsa_mkdir() does not support the '-p' (Parent) switch. Instead, `easyrsa` is tasked with creating the parent dirs as required. The old easyrsa_mkdir_p() is removed and replaced. This is not a fix for Windows 11, it is addressing a known issue by ensuring the failure is captured correctly. Signed-off-by: Richard T Bonhomme <[email protected]>
- Loading branch information
1 parent
15bb7e2
commit bbe8688
Showing
1 changed file
with
28 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters