Skip to content
Permalink
Browse files
Improve error message for log path permission problems
  • Loading branch information
markt-asf committed Apr 27, 2022
1 parent 0dd6a58 commit 5850d0dc4871adb342f3fccecd3351f704499e13
Showing 1 changed file with 4 additions and 2 deletions.
@@ -833,7 +833,7 @@ static BOOL docmdInstallService(LPAPXCMDLINE lpCmdline)
dwResult = apxSecurityGrantFileAccessToUser(SO_LOGPATH, su);
if (dwResult) {
apxLogWrite(APXLOG_MARK_WARN "Failed to grant service user '%S' write permissions to log path '%S' due to error '%d'",
su ? su : L"<default>",
su ? su : DEFAULT_SERVICE_USER,
SO_LOGPATH ? SO_LOGPATH : L"<default>",
dwResult);
}
@@ -1027,7 +1027,9 @@ static BOOL docmdUpdateService(LPAPXCMDLINE lpCmdline)
dwResult = apxSecurityGrantFileAccessToUser(SO_LOGPATH, su);
if (dwResult) {
apxLogWrite(APXLOG_MARK_WARN "Failed to grant service user '%S' write permissions to log path '%S' due to error '%d'",
su, SO_LOGPATH, dwResult);
su ? su : DEFAULT_SERVICE_USER,
SO_LOGPATH ? SO_LOGPATH : L"<default>",
dwResult);
}
/* Update the --Startup mode */
if (ST_STARTUP & APXCMDOPT_FOUND) {

0 comments on commit 5850d0d

Please sign in to comment.