From 0eb96d6ef0261449556ff65f2bb9b018de162c96 Mon Sep 17 00:00:00 2001 From: zzz Date: Wed, 28 Sep 2022 09:17:44 -0400 Subject: [PATCH] Installer: Fix error on Windows when username contains a space (gitlab #367) in fixperms.bat --- installer/resources/fixperms.bat | 2 +- installer/resources/fixperms2.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/resources/fixperms.bat b/installer/resources/fixperms.bat index bd2c74cbfa..b0447fc455 100644 --- a/installer/resources/fixperms.bat +++ b/installer/resources/fixperms.bat @@ -16,4 +16,4 @@ :: Specifying the SID will work on ALL versions of Windows. :: List of well-known SIDs at http://support.microsoft.com/kb/243330/en-us :: -echo Y|icacls %1 /grant %username%:F /c /t /q > %1%\fixperms.log +echo Y|icacls %1 /grant "%username%":F /c /t /q > %1%\fixperms.log diff --git a/installer/resources/fixperms2.bat b/installer/resources/fixperms2.bat index a62e16dca6..39f34e3f35 100644 --- a/installer/resources/fixperms2.bat +++ b/installer/resources/fixperms2.bat @@ -15,4 +15,4 @@ :: Specifying the SID will work on ALL versions of Windows. :: List of well-known SIDs at http://support.microsoft.com/kb/243330/en-us :: -echo Y|icacls %1 /grant:r %username%:F *S-1-5-32-545:RX /c /t /q > %1%\fixperms.log +echo Y|icacls %1 /grant:r "%username%":F *S-1-5-32-545:RX /c /t /q > %1%\fixperms.log