diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-09-08 22:07:27 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-09-08 22:07:27 +0000 |
commit | b31214797cb35708e5729c89e742ebdc44c4284d (patch) | |
tree | cb8285091e0640ebd81129a3d6a254b9f48cf083 /usr.bin/aucat/aucat.c | |
parent | 39668f3cc63395b5572e781e1509f1fda8ed28a8 (diff) |
aucat: getpwnam: No such file or directory
is not a proper error message.
Diffstat (limited to 'usr.bin/aucat/aucat.c')
-rw-r--r-- | usr.bin/aucat/aucat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/aucat/aucat.c b/usr.bin/aucat/aucat.c index 256e4291e32..88d91d2534f 100644 --- a/usr.bin/aucat/aucat.c +++ b/usr.bin/aucat/aucat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aucat.c,v 1.104 2010/08/20 06:56:54 ratchov Exp $ */ +/* $OpenBSD: aucat.c,v 1.105 2010/09/08 22:07:26 deraadt Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -388,7 +388,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) |