Bug 15667

Summary: A bug when the pathname with some space
Product: Base System Reporter: mihs <mihs>
Component: binAssignee: jkh
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.4-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description mihs 1999-12-24 17:20:02 UTC
When the pathname with a or more spaces. the unpack in
/usr/src/usr.sbin/pkg_install/lib/file.c will cause the
tar can't find the +CONTENTS file. Because the
if (vsystem("tar %s %s %s", args, pkg, flist ? flist : "")) {
will produce a string like "tar -$(ARGS) $PATH FILENAME.tgz ...".
It will make the tar can't find the right archive.

Fix: change "tar %s %s %s" to "tar %s '%s' %s"
How-To-Repeat: Web Send-Pr
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 1999-12-28 15:40:34 UTC
Responsible Changed
From-To: freebsd-bugs->jkh

Proposed fix looks good, over to the maintainer. 
Comment 2 jkh freebsd_committer freebsd_triage 2000-01-04 05:09:17 UTC
State Changed
From-To: open->closed

Fix applied, thank you.