Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 291650 | Differences between
and this patch

Collapse All | Expand All

(-)rdiff-backup-1.2.8~/rdiff_backup/SetConnections.py (-2 / +2 lines)
Lines 135-144 Link Here
135
	if not remote_cmd: return Globals.local_connection
135
	if not remote_cmd: return Globals.local_connection
136
136
137
	Log("Executing " + remote_cmd, 4)
137
	Log("Executing " + remote_cmd, 4)
138
	if os.name == "nt":
138
	if map(int, sys.version.split()[0].split('.')[:2]) >= [2, 6]:
139
		import subprocess
139
		import subprocess
140
		try:
140
		try:
141
			process = subprocess.Popen(remote_cmd, shell=False, bufsize=0,
141
			process = subprocess.Popen(remote_cmd, shell=True, bufsize=0,
142
								stdin=subprocess.PIPE, 
142
								stdin=subprocess.PIPE, 
143
								stdout=subprocess.PIPE)
143
								stdout=subprocess.PIPE)
144
			(stdin, stdout) = (process.stdin, process.stdout)
144
			(stdin, stdout) = (process.stdin, process.stdout)

Return to bug 291650