Commit a99e8ed9 authored by claes's avatar claes

Search file didn't find filenames beginning with '.'

parent b83974e6
......@@ -216,7 +216,8 @@ int dcli_search_file( char *name ,
found = 0;
while ( (dir_entry = readdir( directory)) != NULL)
{
if ( dir_entry->d_name[0] == '.')
if ( strcmp( dir_entry->d_name, ".") == 0 ||
strcmp( dir_entry->d_name, "..") == 0)
continue;
if ( wildcard)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment