diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-08-25 22:28:00 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-08-25 22:28:00 +0000 |
commit | ad42b542e45e8a35e958dda15cf8b440051e89db (patch) | |
tree | 845b27d61dd12d38fa940dfa504d27666e1ce4c2 /usr.bin/fstat | |
parent | eafdcd9805f3e865314346810df0240c36225a47 (diff) |
everywhere i look, bugs pop up... sigh
Diffstat (limited to 'usr.bin/fstat')
-rw-r--r-- | usr.bin/fstat/fstat.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c index d023561ca1c..35fc0e972ff 100644 --- a/usr.bin/fstat/fstat.c +++ b/usr.bin/fstat/fstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fstat.c,v 1.11 1997/07/08 00:33:02 millert Exp $ */ +/* $OpenBSD: fstat.c,v 1.12 1997/08/25 22:27:59 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.11 1997/07/08 00:33:02 millert Exp $"; +static char *rcsid = "$OpenBSD: fstat.c,v 1.12 1997/08/25 22:27:59 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -111,12 +111,6 @@ struct filestat { dev_t rdev; }; -#ifdef notdef -struct nlist nl[] = { - { "" }, -}; -#endif - int fsflg, /* show files on same filesystem as file(s) argument */ pflg, /* show files open by a particular pid */ uflg; /* show files open by a particular (effective) user */ @@ -249,12 +243,6 @@ main(argc, argv) fprintf(stderr, "fstat: %s\n", buf); exit(1); } -#ifdef notdef - if (kvm_nlist(kd, nl) != 0) { - fprintf(stderr, "fstat: no namelist: %s\n", kvm_geterr(kd)); - exit(1); - } -#endif if ((p = kvm_getprocs(kd, what, arg, &cnt)) == NULL) { fprintf(stderr, "fstat: %s\n", kvm_geterr(kd)); exit(1); @@ -392,7 +380,7 @@ vtrans(vp, i, flag) { struct vnode vn; struct filestat fst; - char rw[3], mode[15]; + char rw[3], mode[17]; char *badtype = NULL, *filename, *getmnton(); filename = badtype = NULL; @@ -421,7 +409,7 @@ vtrans(vp, i, flag) badtype = "error"; break; default: { - static char unknown[20]; + static char unknown[30]; sprintf(badtype = unknown, "?(%x)", vn.v_tag); break; } |