diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-02-25 14:27:43 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-02-25 14:27:43 +0000 |
commit | 907faf600f4d95eaae4b5c2fc0e8bc06c3efe48e (patch) | |
tree | 79ca1d60da3f85738f4a1cbc890811c99628dbdd /summain | |
parent | a4a011dd30194eb3f1af728a887199d99da7ec29 (diff) | |
download | summain-907faf600f4d95eaae4b5c2fc0e8bc06c3efe48e.tar.gz |
Do not recurse through a symlink given as root
Diffstat (limited to 'summain')
-rwxr-xr-x | summain | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -122,7 +122,7 @@ class Summain(cliapp.Application): 'choose output format (rfc822, csv, json)') def files(self, root): - if os.path.isdir(root): + if os.path.isdir(root) and not os.path.islink(root): for dirname, dirnames, filenames in os.walk(root): yield dirname dirnames.sort() |