##// END OF EJS Templates
convert: pass absolute paths to git (SEC)...
convert: pass absolute paths to git (SEC) Fixes CVE-2016-3105 (1/1). Previously, it was possible for the repository path passed to git-ls-remote to be misinterpreted as a URL. Always passing an absolute path to git is a simple way to avoid this.

File last commit:

r25660:328739ea default
r29051:a56296f5 3.8.1 stable
Show More
readlink.py
13 lines | 245 B | text/x-python | PythonLexer
#!/usr/bin/env python
import errno, os, sys
for f in sys.argv[1:]:
try:
print f, '->', os.readlink(f)
except OSError as err:
if err.errno != errno.EINVAL:
raise
print f, 'not a symlink'
sys.exit(0)