From owner-p4-projects@FreeBSD.ORG Sat Jun 13 10:03:36 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0B1F91065670; Sat, 13 Jun 2009 10:03:36 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD714106566B for ; Sat, 13 Jun 2009 10:03:35 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A9A548FC0A for ; Sat, 13 Jun 2009 10:03:35 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n5DA3Z21091979 for ; Sat, 13 Jun 2009 10:03:35 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n5DA3Zkp091977 for perforce@freebsd.org; Sat, 13 Jun 2009 10:03:35 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Sat, 13 Jun 2009 10:03:35 GMT Message-Id: <200906131003.n5DA3Zkp091977@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 164254 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2009 10:03:36 -0000 http://perforce.freebsd.org/chv.cgi?CH=164254 Change 164254 by rwatson@rwatson_freebsd_capabilities on 2009/06/13 10:02:43 Don't test lseek(2) in the IN_RTLD_CAP case, as we don't need it any longer. Affected files ... .. //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf/rtld.c#17 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf/rtld.c#17 (text+ko) ==== @@ -1595,10 +1595,6 @@ _rtld_error("Unable to find \"%s\" in LD_CAPLIBINDEX", path); return NULL; } - if (lseek(fd, 0, SEEK_SET) == -1) { - _rtld_error("Unable to seek on \"%s\"", path); - return NULL; - } #else path = find_library(name, refobj); if (path == NULL)