| Summary: | A bug when the pathname with some space | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | mihs <mihs> | ||||
| Component: | bin | Assignee: | jkh | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 3.4-RELEASE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
Responsible Changed From-To: freebsd-bugs->jkh Proposed fix looks good, over to the maintainer. State Changed From-To: open->closed Fix applied, thank you. |
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