summaryrefslogtreecommitdiff
path: root/security/pssh/files/patch-psshlib_psshutil.py
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2011-02-11 18:12:28 +0000
committerBrooks Davis <brooks@FreeBSD.org>2011-02-11 18:12:28 +0000
commit7eeab3d6e66b9772964004c27fce4113f083a456 (patch)
treea861e9157ca08d3c27434fedad1f81947b8ab4eb /security/pssh/files/patch-psshlib_psshutil.py
parentUpdate to 0.5.1 release. (diff)
Update to 2.2.2
PR: ports/154568 Submitted by: Ruslan Mahmatkhanov
Diffstat (limited to 'security/pssh/files/patch-psshlib_psshutil.py')
-rw-r--r--security/pssh/files/patch-psshlib_psshutil.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/security/pssh/files/patch-psshlib_psshutil.py b/security/pssh/files/patch-psshlib_psshutil.py
index baf5916567fd..b49beab474d8 100644
--- a/security/pssh/files/patch-psshlib_psshutil.py
+++ b/security/pssh/files/patch-psshlib_psshutil.py
@@ -3,15 +3,15 @@ $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()
+@@ -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()