Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 42234 Details for
Bug 68233
ls -Z segfaults on unknown contexts
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for ls -Z
ls.c.patch (text/plain), 1.16 KB, created by
Michael Tindal (RETIRED)
on 2004-10-19 20:49:26 UTC
(
hide
)
Description:
Patch for ls -Z
Filename:
MIME Type:
Creator:
Michael Tindal (RETIRED)
Created:
2004-10-19 20:49:26 UTC
Size:
1.16 KB
patch
obsolete
>--- /var/tmp/portage/coreutils-5.2.1-r2/work/coreutils-5.2.1/src/ls.c 2004-10-19 22:45:31.962668456 -0400 >+++ ls.c 2004-10-19 23:48:46.327837272 -0400 >@@ -2659,9 +2659,14 @@ > #ifdef WITH_SELINUX > if (print_scontext) > { >- int len = strlen (f->scontext); >- if (scontext_width < len) >- scontext_width = len; >+ if (f->scontext) >+ { >+ int len = strlen (f->scontext); >+ if (scontext_width < len) >+ scontext_width = len; >+ } >+ else >+ scontext_width = -1; > } > #endif > } >@@ -3268,7 +3273,11 @@ > { > DIRED_FPUTS (buf, stdout, p - buf); > >- printf ("%-*s ", scontext_width, f->scontext); >+ if (f->scontext) >+ printf ("%-*s ", scontext_width, f->scontext); >+ else >+ printf ("(unknown context)"); >+ > dired_pos += scontext_width; > dired_pos++; > >@@ -4255,8 +4264,11 @@ > if (print_group) > format_group (f->stat.st_gid, group_width); > } >+ if (f->scontext != NULL) >+ printf ("%-*s ", scontext_width, f->scontext); >+ else >+ printf ("(unknown context)"); > >- printf ("%-*s ", scontext_width, f->scontext); > dired_pos += scontext_width; > dired_pos++; >
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 68233
:
42234
|
42394