[systemd-devel] [PATCH] core: fix getting information about mount unit
Michal Schmidt
mschmidt at redhat.com
Fri Mar 8 06:27:35 PST 2013
On 03/08/2013 03:13 PM, Michal Sekletar wrote:
> @@ -447,7 +447,11 @@ static int mount_add_default_dependencies(Mount *m) {
> if (UNIT(m)->manager->running_as != SYSTEMD_SYSTEM)
> return 0;
>
> - p = get_mount_parameters_fragment(m);
> + if (m->from_fragment)
> + p = get_mount_parameters_fragment(m);
> + else
> + p = get_mount_parameters(m);
> +
Wouldn't it be sufficient to replace the one line?:
- p = get_mount_parameters_fragment(m);
+ p = get_mount_parameters(m);
?
More information about the systemd-devel
mailing list