ports/security/pssh/files/patch-psshlib_psshutil.py
Mathieu Arnold 6172d4b590 Remove $FreeBSD$ from patches files everywhere.
With hat:	portmgr
Sponsored by:	Absolight
2015-05-22 20:34:27 +00: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()