diff options
author | kx <kx@radix.pro> | 2022-09-29 02:17:57 +0300 |
---|---|---|
committer | kx <kx@radix.pro> | 2022-09-29 02:17:57 +0300 |
commit | 13e86394c3a0b75325b338f12f9d9f38936c1683 (patch) | |
tree | 553c733ef5837690f4e905d0b6777db3e6e3b826 /src | |
parent | 286e445581368548843659f84b3357015ad21821 (diff) | |
download | sila-shell-13e86394c3a0b75325b338f12f9d9f38936c1683.tar.xz |
users: check passwd error message
Diffstat (limited to 'src')
-rw-r--r-- | src/users.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 ) ); |