Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 511728
Collapse All | Expand All

(-)a/lib/kernel_efivars.c (-3 / +3 lines)
Lines 66-75 kernel_variable_init(void) Link Here
66
	while (ptr < buf + st.st_size) {
66
	while (ptr < buf + st.st_size) {
67
		int count;
67
		int count;
68
68
69
		sscanf(ptr, "%*s on %s type %s %*s\n%n", path, type, &count);
69
		sscanf(ptr, "%*s on %s type %s %*[^\n]\n%n", path, type, &count);
70
		ptr += count;
70
		ptr += count;
71
		if (strcmp(type, "efivarfs") != 0)
71
		if (strcmp(type, "efivarfs") == 0)
72
			continue;
72
			break;
73
	}
73
	}
74
	if (strcmp(type, "efivarfs") != 0) {
74
	if (strcmp(type, "efivarfs") != 0) {
75
		fprintf(stderr, "No efivarfs filesystem is mounted\n");
75
		fprintf(stderr, "No efivarfs filesystem is mounted\n");

Return to bug 511728