logo

utils-std

Collection of commonly available Unix tools
commit: 3cba99cb20e4160048a57a3fa8c885b8aeb4afe3
parent 2573ccd49c3e7ac6aca4b1efabdcc38cd280a419
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 14 Nov 2023 09:08:48 +0100

cmd/id: Prefix "id: " in perror string

Diffstat:

Mcmd/id.c6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmd/id.c b/cmd/id.c @@ -195,7 +195,7 @@ main(int argc, char *argv[]) gid_t *groups = malloc(sizeof(gid_t) * ngroups_max); if(groups == NULL) { - perror("groups malloc"); + perror("id: malloc(groups)"); return 1; } @@ -247,7 +247,7 @@ main(int argc, char *argv[]) ngroups = getgroups(ngroups_max, groups); if(ngroups < 0) { - perror("getgroups"); + perror("id: getgroups"); goto failure; } } @@ -271,7 +271,7 @@ main(int argc, char *argv[]) ngroups = getgrouplist(pw.pw_name, pw.pw_gid, groups, &ngroups_max); if(ngroups < 0) { - perror("getgrouplist"); + perror("id: getgrouplist"); goto failure; } }