freebsd-ports/security/pssh/files/patch-psshlib_psshutil.py
Brooks Davis 7eeab3d6e6 Update to 2.2.2
PR:		ports/154568
Submitted by:	Ruslan Mahmatkhanov
2011-02-11 18:12:28 +00:00

17 lines
339 B
Python

$FreeBSD$
--- 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()