mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-05 13:11:32 +00:00
fstab-generator: log_oom() if automount_name is null
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
b09b841398
commit
591e3ca379
@@ -351,7 +351,7 @@ static int add_mount(
|
||||
|
||||
if (automount && !path_equal(where, "/")) {
|
||||
automount_name = unit_name_from_path(where, ".automount");
|
||||
if (!name)
|
||||
if (!automount_name)
|
||||
return log_oom();
|
||||
|
||||
automount_unit = strjoin(arg_dest, "/", automount_name, NULL);
|
||||
|
||||
Reference in New Issue
Block a user