Executing "systemctl is-enabled tmp.mount ; echo $?" returns 0 on an error

Bug #1570813 reported by Removed by request
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm using Ubuntu 16.04 dev with systemd 229-4ubuntu4 and figured out by this report ( https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1545707 ) if executing "systemctl is-enabled tmp.mount ; echo $?" fails 0 is returned as shown in this example:

root@ubuntu:~# systemctl is-enabled tmp.mount ; echo $?
Failed to get unit file state for tmp.mount: No such file or directory
0

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.