From owner-freebsd-current Sun May 7 19:29:58 2000 Delivered-To: freebsd-current@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 749A537B925; Sun, 7 May 2000 19:29:55 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id WAA01438; Sun, 7 May 2000 22:29:51 -0400 (EDT) (envelope-from wollman) Date: Sun, 7 May 2000 22:29:51 -0400 (EDT) From: Garrett Wollman Message-Id: <200005080229.WAA01438@khavrinen.lcs.mit.edu> To: Steve Price Cc: jkh@FreeBSD.ORG, current@FreeBSD.ORG Subject: 'pkg_delete m4-1.1/' hangs In-Reply-To: References: Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < said: > I've been experiencing a problem with 'pkg_delete m4-1.1/' > hanging. Attached is a patch that fixes this problem, cleans > the code up a bit (IMHO), and still covers all the corner > cases like 'pkg_delete /var/db/pkg/m4-1.1//./..///' like the > old code did. :) It wouldn't cover the particular obscure case, but this is the sort of thing that SUSv2's basename(3) would be appropriate for. I have an implementation waiting in the wings.... -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message