[Pkg-systemd-maintainers] Bug#734809: Bug#734809: Bug#734809: systemd: systemctl disable/enable => Failed to issue method call: No such file or directory

Michael Stapelberg stapelberg at debian.org
Wed Jan 29 07:22:53 GMT 2014


Hi Michael,

Michael Biebl <biebl at debian.org> writes:
>> Thanks to more information that Marco provided on IRC, I managed to
>> track this problem down and fix it with commit
>> http://anonscm.debian.org/gitweb/?p=pkg-systemd/systemd.git;a=commitdiff;h=712ebba
>> 
>> The fix will be included in the next upload.
>
> Hm, this patch doesn't make sense to me.
>
> The relevant code already has [1]
>
>       if (!args[1])
>                 return 0;
>
> Why would adding that a second time fix anything?
>
> Can you elaborate?
Sure: enable_sysv_units() actually modifies args, i.e. it removes any
arguments that it processed successfully. Therefore, we need to check
after calling enable_sys_units() that there is still something left to
do, otherwise this will result in errors.

-- 
Best regards,
Michael




More information about the Pkg-systemd-maintainers mailing list