mirror of
https://github.com/samba-team/samba.git
synced 2025-12-06 16:23:49 +03:00
r15186: Introduce ISDOT and ISDOTDOT macros for testing whether a filename is
"." for "..". These express the intention better that strcmp or strequal and improve searchability via cscope/ctags.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
95eb558063
commit
7e4ad7e8e5
@@ -73,7 +73,7 @@ _PUBLIC_ init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path)
|
||||
}
|
||||
|
||||
while((entry = readdir(dir))) {
|
||||
if (!strcmp(entry->d_name, ".") || !strcmp(entry->d_name, ".."))
|
||||
if (ISDOT(entry->d_name) || ISDOTDOT(entry->d_name))
|
||||
continue;
|
||||
|
||||
filename = talloc_asprintf(mem_ctx, "%s/%s", path, entry->d_name);
|
||||
|
||||
Reference in New Issue
Block a user