Date: Sat, 4 Nov 1995 03:05:56 +1100 From: Bruce Evans <bde@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 Message-ID: <199511031605.DAA13003@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511031605.DAA13003>
