From 914e6ccbee295f0f950bff220b921ad013aaa20e Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 9 Oct 2020 15:21:41 -0400 Subject: tidy up "not found" error message --- id.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/id.c b/id.c index 99d731d..642632a 100644 --- a/id.c +++ b/id.c @@ -1,7 +1,7 @@ /* * UNG's Not GNU * - * Copyright (c) 2011-2019, Jakob Kaivo + * Copyright (c) 2011-2020, Jakob Kaivo * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -157,8 +157,7 @@ int main(int argc, char *argv[]) if (optind == argc - 1) { struct passwd *pwd = getpwnam(argv[optind]); if (pwd == NULL) { - fprintf(stderr, "id: user '%s' not found\n", - argv[optind]); + fprintf(stderr, "id: %s: not found\n", argv[optind]); return 1; } uid = ruid = euid = pwd->pw_uid; -- cgit v1.2.1