FreeBSD Bugzilla – Attachment 5509 Details for
Bug 13128
[patch] pkg_delete doesn't handle absolute pathnames correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 542 bytes, created by
Cy Schubert
on 1999-08-14 00:40:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Cy Schubert
Created:
1999-08-14 00:40:00 UTC
Size:
542 bytes
patch
obsolete
>--- src/usr.sbin/pkg_install/lib/plist.c.orig Fri Sep 11 00:26:58 1998 >+++ src/usr.sbin/pkg_install/lib/plist.c Fri Aug 13 14:05:43 1999 >@@ -389,7 +389,10 @@ > > case PLIST_FILE: > last_file = p->name; >- sprintf(tmp, "%s/%s", Where, p->name); >+ if (*p->name == '/') >+ strcpy(tmp, p->name); >+ else >+ sprintf(tmp, "%s/%s", Where, p->name); > if (isdir(tmp) && fexists(tmp)) { > warnx("cannot delete specified file `%s' - it is a directory!\n" > "this packing list is incorrect - ignoring delete request", tmp);
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 13128
: 5509