]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/path-util.h
tree-wide: rename hidden_file to hidden_or_backup_file and optimize
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 27 Apr 2016 13:24:59 +0000 (09:24 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 28 Apr 2016 12:25:17 +0000 (08:25 -0400)
commit55cdd057b9ab5190150b97ae26a6b7905595ba8a
tree4157f3a8066f5765137af855fe4c43959385fe88
parentddb3706d2643461a9b03044bd215e53c981d755b
tree-wide: rename hidden_file to hidden_or_backup_file and optimize

In standard linux parlance, "hidden" usually means that the file name starts
with ".", and nothing else. Rename the function to convey what the function does
better to casual readers.

Stop exposing hidden_file_allow_backup which is rather ugly and rewrite
hidden_file to extract the suffix first. Note that hidden_file_allow_backup
excluded files with "~" at the end, which is quite confusing. Let's get
rid of it before it gets used in the wrong place.
src/basic/dirent-util.c
src/basic/dirent-util.h
src/basic/fd-util.c
src/basic/fdset.c
src/basic/path-util.c
src/basic/path-util.h
src/basic/util.c
src/shared/dropin.c
src/tty-ask-password-agent/tty-ask-password-agent.c