]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: mask always reports the same unit names when different unknown units are...
authorFranck Bui <fbui@suse.com>
Wed, 20 Jun 2018 16:09:38 +0000 (18:09 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 Jun 2018 19:53:23 +0000 (21:53 +0200)
commit25c59b5d8565ec714a561badc4d57f86ae265b61
tree1bde070dd5f9f067605eb6b9f8a63963914d1614
parent5ce2212a7245e7a8ee08af2dc662ad4c8e6e6e4b
systemctl: mask always reports the same unit names when different unknown units are passed

Before this patch:

  # systemctl --runtime mask abuild.mount does-not-exist.mount does-also-not-exist.mount
  Unit abuild.mount does not exist, proceeding anyway.
  Unit abuild.mount does not exist, proceeding anyway.
  Unit abuild.mount does not exist, proceeding anyway.
  Created symlink /run/systemd/system/abuild.mount → /dev/null.
  Created symlink /run/systemd/system/does-not-exist.mount → /dev/null.
  Created symlink /run/systemd/system/does-also-not-exist.mount → /dev/null.

After this patch:

  # systemctl --runtime mask abuild.mount does-not-exist.mount does-also-not-exist.mount
  Unit abuild.mount does not exist, proceeding anyway.
  Unit does-not-exist.mount does not exist, proceeding anyway.
  Unit does-also-not-exist.mount does not exist, proceeding anyway.
  Created symlink /run/systemd/system/abuild.mount → /dev/null.
  Created symlink /run/systemd/system/does-not-exist.mount → /dev/null.
  Created symlink /run/systemd/system/does-also-not-exist.mount → /dev/null.
src/systemctl/systemctl.c