Messages in this thread | | | Date | Sun, 12 Oct 2003 22:41:33 +0100 | From | viro@parcelfa ... | Subject | Re: Where does user_path_walk() live? |
| |
On Sun, Oct 12, 2003 at 04:59:58PM -0400, Valdis.Kletnieks@vt.edu wrote: > On Sun, 12 Oct 2003 21:38:19 BST, viro@parcelfarce.linux.theplanet.co.uk said: > > On Sun, Oct 12, 2003 at 01:26:09PM -0700, kevin conaway wrote: > > > I am a student doing an independent study on > > > filesystem security and I was trying to pin down > > > > man find > > man xargs > > man grep > > > > RTFUnixFAQ > > Actually, the answer Kevin wanted was: > > cd /usr/src/linux > grep -r __user_walk .
Ehh... First of all, you'll end up doing a metric buttload of getdents() for no good reason every time you want to search for something. And on the kernel source that's pretty noticable.
Moreover, you generally do *not* want to deal with every file in the tree - find . -name *.[chS] does it nicely, grep -r can't do that at all.
grep -r is a pointless GNUism. It's not safer than find + xargs grep, it's weaker than use of find and it's non-portable to boot... - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |