aboutsummaryrefslogtreecommitdiff
path: root/security/pssh/files/patch-psshlib_psshutil.py
blob: baf5916567fd690fcf78f840b3405bd8e39d66d7 (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
@@ -15,7 +15,10 @@
     if not pathnames:
         return lines
     for pathname in pathnames:
-        f = open(pathname)
+        if pathname == "-":
+            f = open("/dev/stdin")
+        else:
+            f = open(pathname)
         for line in f:
             lines.append(line.strip())
         f.close()