Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 404180 Details for
Bug 550654
=sys-apps/install-xattr-0.5: please stabilize
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH] misc/install-xattr: ignore all whitespace in PORTAGE_XATTR_EXCLUDE
0001-misc-install-xattr-ignore-all-whitespace-in-PORTAGE_.patch (text/plain), 1.12 KB, created by
Jason Zaman
on 2015-05-28 14:55:06 UTC
(
hide
)
Description:
[PATCH] misc/install-xattr: ignore all whitespace in PORTAGE_XATTR_EXCLUDE
Filename:
MIME Type:
Creator:
Jason Zaman
Created:
2015-05-28 14:55:06 UTC
Size:
1.12 KB
patch
obsolete
>From d0835549442bd3288e1a33156f3d237a428292bc Mon Sep 17 00:00:00 2001 >From: Jason Zaman <jason@perfinion.com> >Date: Thu, 28 May 2015 18:31:00 +0400 >Subject: [PATCH] misc/install-xattr: ignore all whitespace in > PORTAGE_XATTR_EXCLUDE > >if the PORTAGE_XATTR_EXCLUDE variable contains whitespace other >than just ' ', the matching fails to exclude what comes after it. > >This replaces all whitespace instead of only just space. > >Signed-off-by: Jason Zaman <perfinion@gentoo.org> >--- > misc/install-xattr/install-xattr.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/misc/install-xattr/install-xattr.c b/misc/install-xattr/install-xattr.c >index b650c67..0b5eb25 100644 >--- a/misc/install-xattr/install-xattr.c >+++ b/misc/install-xattr/install-xattr.c >@@ -261,8 +261,12 @@ main(int argc, char* argv[]) > * strings. Also, no need to free(exclude) before we exit(). > */ > char *p = exclude; >- while ((p = strchr(p, ' '))) >- *p++ = '\0'; >+ char *pend = p + len_exclude; >+ while (p != pend) { >+ if (isspace(*p)) >+ *p = '\0'; >+ p++; >+ } > > opterr = 0; /* we skip many legitimate flags, so silence any warning */ > >-- >2.3.6 >
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 550654
: 404180