ports/security/pssh/files/patch-psshlib_psshutil.py
Brooks Davis 7b81defd3b Upgrade to 1.4.3 which fixes all of the bugs I had patched around and more.
Prodded by:	Michael <postmaster at softsearch dot ru> (ages ago),
		portscout (via miwi)
2009-02-13 20:11:13 +00:00

17 lines
440 B
Python

$FreeBSD$
--- psshlib/psshutil.py.orig
+++ psshlib/psshutil.py
@@ -7,7 +7,10 @@
three arrays: hosts, ports, and users. These can be used directly
for all ssh-based commands (e.g., ssh, scp, rsync -e ssh, etc.)
"""
- f = open(pathname)
+ if pathname == "-":
+ f = open("/dev/stdin")
+ else:
+ f = open(pathname)
lines = f.readlines()
lines = map(lambda x: x.strip(), lines)
addrs = []