From owner-freebsd-commit Fri Nov 3 08:08:01 1995 Return-Path: owner-commit Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id IAA16168 for freebsd-commit-outgoing; Fri, 3 Nov 1995 08:08:01 -0800 Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id IAA16152 for cvs-all-outgoing; Fri, 3 Nov 1995 08:07:43 -0800 Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id IAA16141 for cvs-usrsbin-outgoing; Fri, 3 Nov 1995 08:07:40 -0800 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id IAA16133 ; Fri, 3 Nov 1995 08:07:22 -0800 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id DAA13003; Sat, 4 Nov 1995 03:05:56 +1100 Date: Sat, 4 Nov 1995 03:05:56 +1100 From: Bruce Evans Message-Id: <199511031605.DAA13003@godzilla.zeta.org.au> To: CVS-commiters@freefall.freebsd.org, cvs-usrsbin@freefall.freebsd.org, peter@freefall.freebsd.org Subject: Re: cvs commit: src/usr.sbin/quot Makefile quot.8 quot.c Sender: owner-commit@FreeBSD.org Precedence: bulk > Modified: usr.sbin/quot Makefile quot.8 quot.c > Log: > Minor tweaks to get quot to compile on FreeBSD.. > Basically back-port the dynamic fsname strings back to static constants. This reminds me that our getvfsbyname() is inconsistent with 4.4lite2's. To get the 4.4lite2 `find' to work I had to port it like this: *** function.c~ Thu May 4 19:56:54 1995 --- function.c Thu Sep 28 00:18:06 1995 *************** *** 398,401 **** --- 400,404 ---- register PLAN *new; struct vfsconf vfc; + struct vfsconf *vfsp; ftsoptions &= ~FTS_NOSTAT; *************** *** 406,412 **** * Check first for a filesystem name. */ ! if (getvfsbyname(arg, &vfc) == 0) { new->flags = F_MTTYPE; ! new->mt_data = vfc.vfc_typenum; return (new); } --- 409,417 ---- * Check first for a filesystem name. */ ! vfsp = getvfsbyname(arg); ! if (vfsp != NULL) { ! vfc = *vfsp; new->flags = F_MTTYPE; ! new->mt_data = vfc.vfc_index; return (new); } (our find doesn't support most of the fstypes). The 4.4lite2 interface is better because it allows returning an error code. Bruce