chiark / gitweb /
basic: add readdir_no_dot and safe_glob functions
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 26 Apr 2017 03:44:34 +0000 (23:44 -0400)
committerSven Eden <yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:52 +0000 (09:46 +0200)
commit42031136036b3da794a2575d91de8378931141ed
treeaef2171cd6fd299843f5336307b3b4d61e073da5
parent8fdbd4fdbdf791d9ede56035a67bfa25454f07d2
basic: add readdir_no_dot and safe_glob functions

safe_glob filters out "." and "..".

This converts all users of glob_extend() and glob_exists() to safe_glob.
src/basic/dirent-util.c
src/basic/dirent-util.h