[master 19/30] Open the VNC password file for binary writing (#1014220)
M4rtinK
installerbot-noreply at redhat.com
Mon Jun 1 14:04:36 UTC 2015
From: Martin Kolman <mkolman at redhat.com>
The vncpasswd utility returns binary output.
---
pyanaconda/vnc.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/vnc.py b/pyanaconda/vnc.py
index 8edb11f..772030c 100644
--- a/pyanaconda/vnc.py
+++ b/pyanaconda/vnc.py
@@ -81,7 +81,7 @@ def setVNCPassword(self):
r, w = os.pipe()
iutil.eintr_retry_call(os.write, w, "%s\n" % self.password)
- with open(self.pw_file, "w") as pw_file:
+ with open(self.pw_file, "wb") as pw_file:
# the -f option makes sure vncpasswd does not ask for the password again
rc = iutil.execWithRedirect("vncpasswd", ["-f"],
stdin=r, stdout=pw_file, binary_output=True, log_output=False)
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/459b5c20e4a5913af83994712e956f5afed5b288
More information about the anaconda-patches
mailing list