mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-07 06:03:51 +00:00
gpt-auto-generator: fix detection of /srv
https://bugs.freedesktop.org/show_bug.cgi?id=89226
(cherry picked from commit d736e4f3e7)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
1d6c7cfcd4
commit
4bbc153799
@@ -548,7 +548,7 @@ static int enumerate_partitions(dev_t devnum) {
|
||||
srv_rw = !(flags & GPT_FLAG_READ_ONLY),
|
||||
|
||||
free(srv);
|
||||
srv = strdup(node);
|
||||
srv = strdup(subnode);
|
||||
if (!srv)
|
||||
return log_oom();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user