|
Zbigniew Jędrzejewski-Szmek |
399a2a |
From 4bbc153799e5b29d19c1ec699abfa3d562d8be46 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
From: Mathieu Chevrier <chevrier.mathieu@gmail.com>
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
Date: Fri, 13 Mar 2015 00:33:44 -0400
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
Subject: [PATCH] gpt-auto-generator: fix detection of /srv
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
https://bugs.freedesktop.org/show_bug.cgi?id=89226
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
(cherry picked from commit d736e4f3e76daca4ab1b1fc444737e5ee20a27cd)
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
---
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
src/gpt-auto-generator/gpt-auto-generator.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
index 5c58b58f8a..869a230f17 100644
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
--- a/src/gpt-auto-generator/gpt-auto-generator.c
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
+++ b/src/gpt-auto-generator/gpt-auto-generator.c
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
@@ -548,7 +548,7 @@ static int enumerate_partitions(dev_t devnum) {
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
srv_rw = !(flags & GPT_FLAG_READ_ONLY),
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
free(srv);
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
- srv = strdup(node);
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
+ srv = strdup(subnode);
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
if (!srv)
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
return log_oom();
|
|
Zbigniew Jędrzejewski-Szmek |
399a2a |
}
|