From owner-freebsd-bugs Mon Apr 17 03:08:02 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id DAA16538 for bugs-outgoing; Mon, 17 Apr 1995 03:08:02 -0700 Received: from gvr.win.tue.nl (root@gvr.win.tue.nl [131.155.210.19]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id DAA16520 for ; Mon, 17 Apr 1995 03:07:50 -0700 Received: by gvr.win.tue.nl (8.6.10/1.53) id MAA17970; Mon, 17 Apr 1995 12:07:35 +0200 From: guido@gvr.win.tue.nl (Guido van Rooij) Message-Id: <199504171007.MAA17970@gvr.win.tue.nl> Subject: Re: Typo in /etc/security? To: allynh@barkley.ME.Berkeley.EDU (Allyn Hardyck) Date: Mon, 17 Apr 1995 12:07:34 +0200 (MET DST) Cc: freebsd-bugs@FreeBSD.org In-Reply-To: <9504141945.AA18992@barkley.ME.Berkeley.EDU> from "Allyn Hardyck" at Apr 14, 95 12:45:27 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1132 Sender: bugs-owner@FreeBSD.org Precedence: bulk Allyn Hardyck wrote: > > > So far I'm pretty psyched by the way FreeBSD 2.0 is set up and performs > (although I'd still like some ideas on how to set up CAP with Native > Ethertalk). When I discovered that it's configured to print a list of > setuid files every day and compare it to yesterday's list, I looked for > ps, just as an example. I was surprised not to find it. After some > experimentation I found that the command in /etc/security: > > find $mount -xdev -perm -u+s -or -perm -g+s > > seems only to return the files that have the gid bit set and not > those that have the uid or both uid and gid bits set. > That is causded by a bug in find. This bug is fixed in current. For convenience, I added the patch below: -Guido --- /usr/src/usr.bin/find/find.c.orig Mon Feb 27 21:49:15 1995 +++ /usr/src/usr.bin/find/find.c Mon Feb 27 21:42:48 1995 @@ -99,6 +99,13 @@ if (plan == NULL) tail = plan = new; else { + new = c_openparen(); + new->next = plan; + plan = new; + new = c_closeparen(); + tail->next = new; + tail = new; + new = c_print(); tail->next = new; tail = new; }