mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 21:51:37 +00:00
gpt-auto-generator: fix detection of /srv
https://bugs.freedesktop.org/show_bug.cgi?id=89226
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
9c8ca3f7a6
commit
d736e4f3e7
@@ -546,7 +546,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