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