From owner-cvs-all Thu Oct 8 17:50:46 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA03723 for cvs-all-outgoing; Thu, 8 Oct 1998 17:50:46 -0700 (PDT) (envelope-from owner-cvs-all) Received: from vader.cs.berkeley.edu (vader.CS.Berkeley.EDU [128.32.38.234]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA03573; Thu, 8 Oct 1998 17:50:00 -0700 (PDT) (envelope-from asami@sunrise.cs.berkeley.edu) Received: from bubble.didi.com (sji-ca32-44.ix.netcom.com [209.109.239.44]) by vader.cs.berkeley.edu (8.8.7/8.7.3) with ESMTP id RAA20919; Thu, 8 Oct 1998 17:49:41 -0700 (PDT) Received: (from asami@localhost) by bubble.didi.com (8.8.8/8.8.8) id RAA00671; Thu, 8 Oct 1998 17:49:26 -0700 (PDT) (envelope-from asami) Date: Thu, 8 Oct 1998 17:49:26 -0700 (PDT) Message-Id: <199810090049.RAA00671@bubble.didi.com> To: jkh@FreeBSD.ORG CC: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG In-reply-to: <199810090001.RAA10312@freefall.freebsd.org> (jkh@FreeBSD.ORG) Subject: Re: cvs commit: src/usr.sbin/pkg_install/lib file.c From: asami@FreeBSD.ORG (Satoshi Asami) Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk * Use lstat() rather than stat in determining whether a file exists, * otherwise we'll miss the "symlink exists but points nowhere" case. I tought this was the fix to "can't list symlink to directory 'cause pkg_delete complains" problem. * Submitted by: asami and/or possibly ^^^^^^^^^^^^^^^^ It's him! I just tested and forwarded the patch to you! :) Satoshi