chiark / gitweb /
basic/dirent-util: do not call hidden_file_allow_backup from dirent_is_file_with_suffix
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 27 Apr 2016 12:59:12 +0000 (08:59 -0400)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:58 +0000 (10:12 +0200)
commit792902f968872bb5dd8639bc7c6bbfc7831817f5
tree864b463fd206e627f216ce38225ddcc970747e50
parent6b05aab633fa55aa3070f186869d8fa219be2f38
basic/dirent-util: do not call hidden_file_allow_backup from dirent_is_file_with_suffix

If the file name is supposed to end in a suffix, there's not need to check the
name against a list of "special" file names, which is slow. Instead, just check
that the name doens't start with a period.
src/basic/dirent-util.c