@@ -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