]> git.ipfire.org Git - thirdparty/systemd.git/commit
install: fix incorrect 'Access denied' message with a non-existent unit
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 9 Feb 2012 09:36:56 +0000 (10:36 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Thu, 9 Feb 2012 09:36:56 +0000 (10:36 +0100)
commit81006b8ad8cfdbfdb418fc99918ee5c33eb5b35a
tree153f67c7e4550bb2ccbd140a3f658838f2c10314
parentab5919fa1af147c2632fdae7bed4504c898a60af
install: fix incorrect 'Access denied' message with a non-existent unit

With "systemctl is-enabled non-existent.service"
_UNIT_FILE_STATE_INVALID (-1) was wrongly interpreted as -errno.
Return -ENOENT in this case.

https://bugzilla.redhat.com/show_bug.cgi?id=766579
src/install.c