From owner-freebsd-stable Tue Jan 28 20:58: 7 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 667D937B401 for ; Tue, 28 Jan 2003 20:58:06 -0800 (PST) Received: from out012.verizon.net (out012pub.verizon.net [206.46.170.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98E8043FA3 for ; Tue, 28 Jan 2003 20:58:05 -0800 (PST) (envelope-from arlankfo@verizon.net) Received: from verizon.net ([138.88.144.44]) by out012.verizon.net (InterMail vM.5.01.05.20 201-253-122-126-120-20021101) with ESMTP id <20030129045804.MORR15239.out012.verizon.net@verizon.net> for ; Tue, 28 Jan 2003 22:58:04 -0600 To: stable@freebsd.org Subject: This looks like a bug to me.... From: "Andrew Lankford" Reply-To: "Andrew Lankford" Date: Tue, 28 Jan 2003 23:58:17 -0500 Message-Id: <20030129045804.MORR15239.out012.verizon.net@verizon.net> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the vicinity of line 405 of /usr/src/usr.bin/find/function.c ( in f_delete() ) we have the following: /* Potentially unsafe - do not accept relative paths whatsoever */ if (strchr(entry->fts_accpath, '/') != NULL) errx(1, "-delete: %s: relative path potentially not safe", entry->fts_accpath); Shouldn't the NULL really be entry->fts_accpath instead? Andrew Lankford To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message