summaryrefslogtreecommitdiffstats
path: root/usr.sbin/quot
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-04-25 11:04:01 +0000
committerderaadt <deraadt@openbsd.org>1996-04-25 11:04:01 +0000
commitdde996756c7d1f5568b1549fab5f8b905e396089 (patch)
treeefe73c4355f3a034568dd2c1fec9fe4707c79f9c /usr.sbin/quot
parentRegenerated from new syscalls.master (diff)
downloadwireguard-openbsd-dde996756c7d1f5568b1549fab5f8b905e396089.tar.xz
wireguard-openbsd-dde996756c7d1f5568b1549fab5f8b905e396089.zip
permit quotas to work on mfs; problem reported by rdante@pnet.net
Diffstat (limited to 'usr.sbin/quot')
-rw-r--r--usr.sbin/quot/quot.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c
index 2c0b6f583f0..63b442b761d 100644
--- a/usr.sbin/quot/quot.c
+++ b/usr.sbin/quot/quot.c
@@ -30,7 +30,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: quot.c,v 1.2 1995/11/06 21:40:54 deraadt Exp $";
+static char rcsid[] = "$Id: quot.c,v 1.3 1996/04/25 11:04:11 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -567,7 +567,9 @@ int main(argc,argv)
if (all) {
cnt = getmntinfo(&mp,MNT_NOWAIT);
for (; --cnt >= 0; mp++) {
- if (!strncmp(mp->f_fstypename, MOUNT_FFS, MFSNAMELEN)) {
+ if (!strncmp(mp->f_fstypename, MOUNT_FFS, MFSNAMELEN) ||
+ !strncmp(mp->f_fstypename, MOUNT_MFS, MFSNAMELEN) ||
+ !strncmp(mp->f_fstypename, "ufs", MFSNAMELEN)) {
if (nm = strrchr(mp->f_mntfromname,'/')) {
sprintf(dev,"/dev/r%s",nm + 1);
nm = dev;