Subject: pkg/20775: pkg* don't deal well with filenames with spaces
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jschauma@cs.stevens-tech.edu>
List: netbsd-bugs
Date: 03/17/2003 17:28:45
>Number:         20775
>Category:       pkg
>Synopsis:       pkg* don't deal well with filenames with spaces
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 17 14:29:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jan Schaumann
>Release:        NetBSD 1.6.1_RC2
>Organization:
	
>Environment:
	
	
System: NetBSD dogfish-head.cs.stevens-tech.edu 1.6.1_RC2 NetBSD 1.6.1_RC2 (BOCK) #27: Tue Mar 11 18:03:40 EST 2003 jschauma@dogfish-head.cs.stevens-tech.edu:/usr/src/sys/arch/i386/compile/BOCK i386
Architecture: i386
Machine: i386
>Description:

	Trying to build a package for software that installs various files
	with spaces in the filename lead to problems when attempting to
	register the package.

	pkg_create: MD5File: can't read from `/usr/pkg/bin/digest md5 /usr/pkg/some/long path with/some file/names/with/spaces in it': Success

	make print-PLIST creates a flawed PLIST as well when trying to parse
	the filenames to create @dirrm entries:

	@dirrm some/long
	@dirrm path
	@dirrm with/some
	@dirrm file/names/with/spaces
	@dirrm in
	@dirrm it


>How-To-Repeat:

	Try to install a package that contains files with spaces in the filename.
	I would assume that a similar problem occurs with other 'special'
	characters in a files name.

>Fix:

	I'd assume some quoting of the filenames and/or escaping of non-standard
	characters in a files name might help.
>Release-Note:
>Audit-Trail:
>Unformatted: