From 13e86394c3a0b75325b338f12f9d9f38936c1683 Mon Sep 17 00:00:00 2001 From: kx Date: Thu, 29 Sep 2022 02:17:57 +0300 Subject: users: check passwd error message --- src/users.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/users.c b/src/users.c index 09e37ae..445f0c3 100644 --- a/src/users.c +++ b/src/users.c @@ -187,7 +187,8 @@ int com_passwd( char *arg ) if( !strncmp( user_role, ROLE_ADMIN, sizeof( ROLE_ADMIN ) ) ) sprintf( syscom, "passwd %s", opt_name ); else - sprintf( syscom, "echo \"Only users with role='%s' can change other user's password\"", ROLE_ADMIN ); + sprintf( syscom, "echo \"%s: Only users with role='%s' can change other user's password.\"", + "passwd", ROLE_ADMIN ); } return( system( syscom ) ); -- cgit v1.2.3