1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-04 19:09:16 -04:00
ports/security/pssh/files/patch-psshlib_psshutil.py

17 lines
384 B
Python

$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()