Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File open issue #7

Open
tuwid opened this issue Dec 17, 2014 · 1 comment
Open

File open issue #7

tuwid opened this issue Dec 17, 2014 · 1 comment

Comments

@tuwid
Copy link
Contributor

tuwid commented Dec 17, 2014

Traceback (most recent call last):
File "shelldetect.py", line 347, in
shell.start()
File "shelldetect.py", line 150, in start
self.anaylize()
File "shelldetect.py", line 160, in anaylize
_content = open(_filename, 'rt', -1).read()
IOError: [Errno 2] No such file or directory: '/path_with_weird_ending/.#generate_feeds.php'

@tuwid
Copy link
Contributor Author

tuwid commented Dec 18, 2014

the issue is that the script is unable to follow sym links , its fixed by replacing the .# in the path variable

at line 160 you should add
_filename = re.sub('.#', '', _filename)

this fixes the link follow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant