Allow "flawfinder ." (fix bug#3)

- Skipping dotdir also skipped ".", but it shouldn't.
  - My thanks to Gerd, who provided the patch
This commit is contained in:
David A. Wheeler 2014-07-12 11:40:22 -04:00
parent f372da2530
commit 400b58817c
1 changed files with 1 additions and 1 deletions

View File

@ -1468,7 +1468,7 @@ def maybe_process_file(f, patch_infos):
num_links_skipped = num_links_skipped + 1
return
base_filename = os.path.basename(f)
if (skipdotdir and len(base_filename) > 0 and ("." == base_filename[0])):
if (skipdotdir and len(base_filename) > 1 and ("." == base_filename[0])):
if not quiet: print "Warning: skipping directory with initial dot", h(f)
num_dotdirs_skipped = num_dotdirs_skipped + 1
return