summaryrefslogtreecommitdiff
path: root/src/basic/glob-util.c
AgeCommit message (Collapse)Author
2017-04-27basic: add readdir_no_dot and safe_glob functionsZbigniew Jędrzejewski-Szmek
safe_glob filters out "." and "..". This converts all users of glob_extend() and glob_exists() to safe_glob.
2016-02-10tree-wide: remove Emacs lines from all filesDaniel Mack
This should be handled fine now by .dir-locals.el, so need to carry that stuff in every file.
2016-01-13tree-wide: check if errno is greater then zeroZbigniew Jędrzejewski-Szmek
gcc is confused by the common idiom of return errno ? -errno : -ESOMETHING and thinks a positive value may be returned. Replace this condition with errno > 0 to help gcc and avoid many spurious warnings. I filed a gcc rfe a long time ago, but it hard to say if it will ever be implemented [1]. Both conventions were used in the codebase, this change makes things more consistent. This is a follow up to bcb161b0230f. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61846
2015-11-30basic: include only what we useThomas Hindoe Paaboel Andersen
This is a cleaned up result of running iwyu but without forward declarations on src/basic.
2015-11-03util-lib: move character class definitions to string-util.hLennart Poettering
2015-10-27util-lib: split out globbing related calls into glob-util.[ch]Lennart Poettering