logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git
commit: f7fca1baefffdfe38c08c485cc4c8b1db23d5a0e
parent 40d2affb9a02cf1fd90ebfde2fd35309fb35ee0c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 20 Sep 2024 05:19:42 +0200

lib/user_group_parse: unify error message formatting

Diffstat:

Mlib/user_group_parse.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/user_group_parse.c b/lib/user_group_parse.c @@ -37,7 +37,7 @@ parse_user(char *str, uid_t *user) const char *e = strerror(errno); if(errno == 0) e = "Entry Not Found"; - fprintf(stderr, "%s: Error: Failed to get entry for username '%s': %s\n", argv0, str, e); + fprintf(stderr, "%s: error: Failed to get entry for username '%s': %s\n", argv0, str, e); return -1; } @@ -70,7 +70,7 @@ parse_group(char *str, gid_t *group) const char *e = strerror(errno); if(errno == 0) e = "Entry Not Found"; - fprintf(stderr, "%s: Error: Failed to get entry for group '%s': %s\n", argv0, str, e); + fprintf(stderr, "%s: error: Failed to get entry for group '%s': %s\n", argv0, str, e); return -1; }