FreeBSD Bugzilla – Attachment 7890 Details for
Bug 16839
MFC Matthew D. Fuller's patch to deal with full pathnames"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 898 bytes, created by
jack
on 2000-02-20 20:40:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
jack
Created:
2000-02-20 20:40:00 UTC
Size:
898 bytes
patch
obsolete
>--- main.c.orig Sun Aug 29 11:45:18 1999 >+++ main.c Sun Feb 20 15:29:50 2000 >@@ -41,6 +41,7 @@ > { > int ch, error; > char **pkgs, **start; >+ char *pkgs_split; > > pkgs = start = argv; > while ((ch = getopt(argc, argv, Options)) != -1) >@@ -82,8 +83,26 @@ > > /* Get all the remaining package names, if any */ > /* Get all the remaining package names, if any */ >- while (*argv) >- *pkgs++ = *argv++; >+ while (*argv) { >+ if ((pkgs_split = rindex(*argv, (int)'/')) != NULL) { >+ while (!isalpha(*(pkgs_split + 1))) { >+ *pkgs_split = '\0'; >+ if ((pkgs_split = rindex(*argv, (int) '/')) == NULL) >+ pkgs_split = *argv; >+ } >+ if (pkgs_split != NULL) { >+ if (*pkgs_split == '/') >+ pkgs_split++; >+ *pkgs = pkgs_split; >+ pkgs++; >+ } >+ } >+ else { >+ *pkgs = *argv; >+ pkgs++; >+ } >+ argv++; >+ } > > /* If no packages, yelp */ > if (pkgs == start)
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 16839
: 7890