summaryrefslogtreecommitdiff
path: root/security/pssh/files/patch-psshlib_psshutil.py
blob: 4f6da7662709b696cf1c97ceaa89070d23031a1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$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 = []