From owner-cvs-all@FreeBSD.ORG Sun Feb 24 00:01:07 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C7FD16A401; Sun, 24 Feb 2008 00:01:07 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 46F8C13C45B; Sun, 24 Feb 2008 00:01:07 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1O0179L050800; Sun, 24 Feb 2008 00:01:07 GMT (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1O016WU050799; Sun, 24 Feb 2008 00:01:06 GMT (envelope-from imp) Message-Id: <200802240001.m1O016WU050799@repoman.freebsd.org> From: Warner Losh Date: Sun, 24 Feb 2008 00:01:06 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/find function.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2008 00:01:07 -0000 imp 2008-02-24 00:01:06 UTC FreeBSD src repository Modified files: usr.bin/find function.c Log: The matching in -lname and -ilname are on the contents of the link itself, not on the type of the file. As such, do a readlink to get the symbolic link's contents and fail to match if the path isn't a symbolic link. Pointed out by: des@ Revision Changes Path 1.60 +10 -5 src/usr.bin/find/function.c