summaryrefslogtreecommitdiffstats
path: root/usr.sbin/quot
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1999-09-22 05:04:34 +0000
committerderaadt <deraadt@openbsd.org>1999-09-22 05:04:34 +0000
commitc1e5cb077af926145e25add646a4ebd9888ce04a (patch)
treeaa54ff242ed50b5d6360fcf90cfa999866fcbb89 /usr.sbin/quot
parentcorrect oob handling for STAT command; ian@plutotech.com (diff)
downloadwireguard-openbsd-c1e5cb077af926145e25add646a4ebd9888ce04a.tar.xz
wireguard-openbsd-c1e5cb077af926145e25add646a4ebd9888ce04a.zip
do not know how to fix, doc it at least
Diffstat (limited to 'usr.sbin/quot')
-rw-r--r--usr.sbin/quot/quot.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c
index 5229b7024f5..28b40aec2c2 100644
--- a/usr.sbin/quot/quot.c
+++ b/usr.sbin/quot/quot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: quot.c,v 1.6 1999/08/06 20:41:08 deraadt Exp $ */
+/* $OpenBSD: quot.c,v 1.7 1999/09/22 05:04:34 deraadt Exp $ */
/* $NetBSD: quot.c,v 1.7.4.1 1996/05/31 18:06:36 jtc Exp $ */
/*
@@ -33,7 +33,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: quot.c,v 1.6 1999/08/06 20:41:08 deraadt Exp $";
+static char rcsid[] = "$Id: quot.c,v 1.7 1999/09/22 05:04:34 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -555,6 +555,10 @@ quot(name, mp)
get_inode(-1); /* flush cache */
inituser();
initfsizes();
+ /*
+ * XXX this is completely broken. Of course you can't read a
+ * directory, well, not anymore. How to fix this, though...
+ */
if ((fd = open(name, 0)) < 0
|| lseek(fd, SBOFF, 0) != SBOFF
|| read(fd, superblock, SBSIZE) != SBSIZE) {