summaryrefslogtreecommitdiff
path: root/security/pssh/files/patch-psshlib_psshutil.py
blob: 13467840949941bf63b7c365b52efd45888e3f73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- 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()