Subject: pkg/20775: pkg* don't deal well with filenames with spaces
To: None <>
From: None <>
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
>Originator:     Jan Schaumann
>Release:        NetBSD 1.6.1_RC2
System: NetBSD 1.6.1_RC2 NetBSD 1.6.1_RC2 (BOCK) #27: Tue Mar 11 18:03:40 EST 2003 i386
Architecture: i386
Machine: i386

	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


	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.


	I'd assume some quoting of the filenames and/or escaping of non-standard
	characters in a files name might help.