From owner-freebsd-audit Mon Apr 30 14:48:27 2001 Delivered-To: freebsd-audit@freebsd.org Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.161.193]) by hub.freebsd.org (Postfix) with ESMTP id 4D08137B422 for ; Mon, 30 Apr 2001 14:48:23 -0700 (PDT) (envelope-from mheffner@vt.edu) Received: from mail.vt.edu (gkar.cc.vt.edu [198.82.161.190]) by lennier.cc.vt.edu (8.11.0/8.11.0) with ESMTP id f3ULmMu172729; Mon, 30 Apr 2001 17:48:22 -0400 (EDT) Received: from enterprise.muriel.penguinpowered.com ([198.82.100.151]) by gkar.cc.vt.edu (Sun Internet Mail Server sims.3.5.2000.03.23.18.03.p10) with ESMTP id <0GCM00J9KKKLMJ@gkar.cc.vt.edu>; Mon, 30 Apr 2001 17:48:21 -0400 (EDT) Date: Mon, 30 Apr 2001 17:46:49 -0400 (EDT) From: Mike Heffner Subject: RE: du(1) -I option to ignore files/dirs In-reply-to: <20010428194259.J415@ringworld.oblivion.bg> To: Peter Pentchev Cc: audit@FreeBSD.org Message-id: MIME-version: 1.0 X-Mailer: XFMail 1.4.7 on FreeBSD Content-type: multipart/signed; boundary="_=XFMail.1.4.7.FreeBSD:20010430174649:439=_"; micalg=pgp-md5; protocol="application/pgp-signature" X-Priority: 3 (Normal) Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message is in MIME format --_=XFMail.1.4.7.FreeBSD:20010430174649:439=_ Content-Type: text/plain; charset=us-ascii On 28-Apr-2001 Peter Pentchev wrote: | Hi, | | And just when -arch thought they'd gotten rid of me and my du(1) patches.. ;) | | Well, since no one had any real objections to adding the -I flag, other than | 'no one else is doing that' (so why can't we?), and as several people agreed | that there was no easy (or moderately hard) way to do this with other utils, | here's an updated patch that properly uses slist's instead of the constant- | sized arrays in the previous version. Looks good | | + | +int | +ignorep(ent) | + FTSENT *ent; | +{ | + struct ignentry *ign; | + | + if (SLIST_EMPTY(&ignores)) | + return 0; This isn't needed though because it's caught in the _FOREACH. Mike -- Mike Heffner Blacksburg, VA http://filebox.vt.edu/users/mheffner --_=XFMail.1.4.7.FreeBSD:20010430174649:439=_ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE67d1JFokZQs3sv5kRAo34AJ41LuY+BEGQkJk3P4Ksa5vSGCVejACeIhlP 8YrweHorBHoSNsTbFLIKpMM= =8HI2 -----END PGP SIGNATURE----- --_=XFMail.1.4.7.FreeBSD:20010430174649:439=_-- End of MIME message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message