Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 377792 Details for
Bug 511728
app-crypt/efitools-1.4.2-r2 (Update) - patch to fix mount -l output parsing in kernel_variable_init()
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix "mount -l" parsing in kernel_variable_init() function
efitools-1.4.2-recognize-efivarfs.patch (text/plain), 593 bytes, created by
sakaki
on 2014-05-28 19:54:25 UTC
(
hide
)
Description:
Patch to fix "mount -l" parsing in kernel_variable_init() function
Filename:
MIME Type:
Creator:
sakaki
Created:
2014-05-28 19:54:25 UTC
Size:
593 bytes
patch
obsolete
>diff --git a/lib/kernel_efivars.c b/lib/kernel_efivars.c >index 3c5852c..07af225 100644 >--- a/lib/kernel_efivars.c >+++ b/lib/kernel_efivars.c >@@ -66,10 +66,10 @@ kernel_variable_init(void) > while (ptr < buf + st.st_size) { > int count; > >- sscanf(ptr, "%*s on %s type %s %*s\n%n", path, type, &count); >+ sscanf(ptr, "%*s on %s type %s %*[^\n]\n%n", path, type, &count); > ptr += count; >- if (strcmp(type, "efivarfs") != 0) >- continue; >+ if (strcmp(type, "efivarfs") == 0) >+ break; > } > if (strcmp(type, "efivarfs") != 0) { > fprintf(stderr, "No efivarfs filesystem is mounted\n");
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 511728
: 377792 |
377794