X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/709549b4bd9fee0e0054c0dfa75fff9ac18f2862..80fc20d1d69b14f36ad9bb64d8af38481cbf1ff5:/components/user.c diff --git a/components/user.c b/components/user.c index 8ab6db9..cd503f6 100644 --- a/components/user.c +++ b/components/user.c @@ -20,7 +20,7 @@ username(void) struct passwd *pw; if (!(pw = getpwuid(geteuid()))) { - fprintf(stderr, "getpwuid '%d': %s\n", geteuid(), strerror(errno)); + warn("getpwuid '%d':", geteuid()); return NULL; }