opnsense-ports/security/pssh/files/patch-psshlib_psshutil.py
Franco Fichtner 05ec040734 */*: sync with upstream
Taken from: FreeBSD
2015-05-23 07:42:34 +02:00

14 lines
327 B
Python

--- psshlib/psshutil.py.orig
+++ psshlib/psshutil.py
@@ -27,7 +27,10 @@
Returns a list of (host, port, user) triples.
"""
lines = []
- f = open(path)
+ if path == "-":
+ f = open("/dev/stdin")
+ else:
+ f = open(path)
for line in f:
lines.append(line.strip())
f.close()