From c7be174526887d11ff665d2b55cb40a01ed5e3e5 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Thu, 9 Sep 2010 08:35:23 +0200 Subject: [PATCH] better error message if getpwnam fails --- aucat/aucat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aucat/aucat.c b/aucat/aucat.c index f481241..9b2ded2 100644 --- a/aucat/aucat.c +++ b/aucat/aucat.c @@ -392,7 +392,7 @@ privdrop(void) struct stat sb; if ((pw = getpwnam(SNDIO_USER)) == NULL) - err(1, "getpwnam"); + errx(1, "unknown user %s", SNDIO_USER); if (stat(pw->pw_dir, &sb) < 0) err(1, "stat(\"%s\")", pw->pw_dir); if (sb.st_uid != 0 || (sb.st_mode & 022) != 0)