basic/unit-file: ignore any hidden files immediately
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 28 Apr 2021 13:57:40 +0000 (15:57 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 28 Apr 2021 15:12:32 +0000 (17:12 +0200)
commit3796bdc55d6ba499d1049f749072218879e619a7
tree7cb0603fb59175447ab445b7bf0ea88ac3f2337e
parente6f1d7f4ecc6ac77be1b532ffd5db6b43ff1431e
basic/unit-file: ignore any hidden files immediately

Hidden and backup files cannot be valid unit name (we reject anything
starting with a dot, and we require type suffixes). So let's not iterate
over those at all.
src/basic/unit-file.c