From owner-freebsd-hackers Sun Nov 5 1:13:19 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from public.ndh.com (public.ndh.net [195.94.90.21]) by hub.freebsd.org (Postfix) with ESMTP id 59BD837B4D7 for ; Sun, 5 Nov 2000 01:13:16 -0800 (PST) Received: from elan.firekeys.org (port2135.duesseldorf.ndh.net [195.227.37.135]) by public.ndh.com (8.9.3/8.8.0) with ESMTP id KAA02068 for ; Sun, 5 Nov 2000 10:13:13 +0100 (MET) Date: Sun, 5 Nov 2000 10:13:12 +0100 (CET) Message-Id: <200011050913.eA59DCM02249@elan.firekeys.org> From: Stefan Moeding To: freebsd-hackers@freebsd.org Subject: Bogus filename error with pkg_add Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Reply-To: s.moeding@ndh.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! I'm working on a port which tries to install some files containing a "'" character in the filename. The ports system works well but when I create the package and try to install it with pkg_add it bombs with a "Bogus filename" message. The code in /usr/src/usr.sbin/pkg_install/add/extract.c looks like this: if (strrchr(p->name,'\'')) { cleanup(0); errx(2, __FUNCTION__ ": Bogus filename \"%s\"", p->name); } I know that "'" might not be the best character for filenames but what exactly is the reason for pkg_add not allowing those characters? After all the installation as a port works fine. Stefan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message