]> err.no Git - systemd/commit
unit-name: never create a unit name with a leading '.'
authorKay Sievers <kay@vrfy.org>
Mon, 4 Jun 2012 12:57:24 +0000 (14:57 +0200)
committerKay Sievers <kay@vrfy.org>
Mon, 4 Jun 2012 12:57:24 +0000 (14:57 +0200)
commit4b7126538c25268c79ff10d166920934f149a329
treeb0bd5148397e52687badf321cea015e138dfaa30
parentcabe5d25640914be1000d23bcdd29d2ffc6333de
unit-name: never create a unit name with a leading '.'

Supposed to prevent creating unit files like:
  ├── dev-sda1.device.wants
  │   └── .dot.mount -> /run/systemd/generator/.dot.mount
  ├── .dot.mount
from:
  # cat /etc/fstab
  /dev/sda1    /.dot           vfat ro           1 3

which we later skip reading because of the leading '.'.
src/shared/unit-name.c