FreeBSD Bugzilla – Attachment 230168 Details for
Bug 260467
/usr/sbin/pkg cannot add ports-mgmt/pkg via directory path (breaks nanobsd)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Fix
file_260467.txt (text/plain), 557 bytes, created by
606u
on 2021-12-16 08:20:38 UTC
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
606u
Created:
2021-12-16 08:20:38 UTC
Size:
557 bytes
patch
obsolete
>--- /usr/src/usr.sbin/pkg/pkg.c.orig 2021-12-15 17:35:26.662087000 +0200 >+++ /usr/src/usr.sbin/pkg/pkg.c 2021-12-15 17:34:30.180724000 +0200 >@@ -1063,8 +1063,13 @@ > static bool > pkg_is_pkg_pkg(const char *pkg) > { >- char *vstart; >+ char *slash, *vstart; > size_t namelen; >+ >+ /* Ignore the path component when checking the package name */ >+ slash = strrchr(pkg, '/'); >+ if (slash) >+ pkg = slash + 1; > > /* > * Chop off the final "-" (version delimiter) and check the name that
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 260467
: 230168