Skip to content

Commit 91a3e9a

Browse files
Merge pull request #5986 from aleksandrychev/ENT-13573_3.21.x
ENT-13573: Changed ChangePasswordHashUsingChpass logging info (3.21.x)
2 parents 18f89e2 + deb3b2a commit 91a3e9a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cf-agent/verify_users_pam.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -650,19 +650,19 @@ static bool ExecuteUserCommand(const char *puser, const char *cmd, size_t sizeof
650650
return false;
651651
}
652652

653-
Log(LOG_LEVEL_VERBOSE, "%s user '%s'. (command: '%s')", cap_action_msg, puser, cmd);
653+
Log(LOG_LEVEL_VERBOSE, "ExecuteUserCommand: %s user '%s'.", cap_action_msg, puser);
654654

655655
FILE *fptr = cf_popen(cmd, "w", true);
656656
if (!fptr)
657657
{
658-
Log(LOG_LEVEL_ERR, "Command returned error while %s user '%s'. (Command line: '%s')", action_msg, puser, cmd);
658+
Log(LOG_LEVEL_ERR, "ExecuteUserCommand: returned error while %s user '%s'.", action_msg, puser);
659659
return false;
660660
}
661661

662662
int status = cf_pclose(fptr);
663663
if (status)
664664
{
665-
Log(LOG_LEVEL_ERR, "'%s' returned non-zero status: %i\n", cmd, status);
665+
Log(LOG_LEVEL_ERR, "ExecuteUserCommand: returned non-zero status: %i\n", status);
666666
return false;
667667
}
668668

@@ -680,7 +680,7 @@ static bool ChangePasswordHashUsingChpass(const char *puser, const char *passwor
680680
StringAppend(cmd, "\' ", sizeof(cmd));
681681
StringAppend(cmd, puser, sizeof(cmd));
682682

683-
Log(LOG_LEVEL_VERBOSE, "Changing password hash for user '%s'. (command: '%s')", puser, cmd);
683+
Log(LOG_LEVEL_VERBOSE, "Changing password hash for user '%s' using chpass.", puser);
684684

685685
return ExecuteUserCommand(puser, cmd, sizeof(cmd), "changing", "Changing");
686686
}

0 commit comments

Comments
 (0)