diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-11-30 10:19:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-11-30 10:19:03 +0000 |
commit | fcceee6fa992a627023352b0048bfe6fa2fcd869 (patch) | |
tree | 8b7b32c62434c04fadba4d07dfbb781a3fd28b31 /usr.bin/fstat/fstat.c | |
parent | c9eb12f68044b74a2be118df6c366c9868270343 (diff) |
fix error outputs; form
Diffstat (limited to 'usr.bin/fstat/fstat.c')
-rw-r--r-- | usr.bin/fstat/fstat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c index d4497c8c280..02aaec475ca 100644 --- a/usr.bin/fstat/fstat.c +++ b/usr.bin/fstat/fstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fstat.c,v 1.20 1998/09/08 20:49:33 art Exp $ */ +/* $OpenBSD: fstat.c,v 1.21 1998/11/30 10:19:02 deraadt Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -41,7 +41,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)fstat.c 8.1 (Berkeley) 6/6/93";*/ -static char *rcsid = "$OpenBSD: fstat.c,v 1.20 1998/09/08 20:49:33 art Exp $"; +static char *rcsid = "$OpenBSD: fstat.c,v 1.21 1998/11/30 10:19:02 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -190,7 +190,7 @@ main(argc, argv) if (uflg++) usage(); if (!(passwd = getpwnam(optarg))) - err(1, "%s: unknown uid", optarg); + errx(1, "%s: unknown uid", optarg); what = KERN_PROC_UID; arg = passwd->pw_uid; break; @@ -230,13 +230,13 @@ main(argc, argv) } if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf)) == NULL) - err(1, buf); + errx(1, "%s", buf); setegid(getgid()); setgid(getgid()); if ((p = kvm_getprocs(kd, what, arg, &cnt)) == NULL) - err(1, kvm_geterr(kd)); + errx(1, "%s", kvm_geterr(kd)); if (nflg) printf("%s", "USER CMD PID FD DEV INUM MODE SZ|DV R/W"); |