[PATCH] Fix an old typo in zeroing out a PReP partition. (#1072781)

Anne Mulhern amulhern at redhat.com
Thu Mar 6 19:50:52 UTC 2014


Ack.

----- Original Message -----
From: "David Lehman" <dlehman at redhat.com>
To: anaconda-patches at lists.fedorahosted.org
Sent: Thursday, March 6, 2014 1:41:11 PM
Subject: [PATCH] Fix an old typo in zeroing out a PReP partition. (#1072781)

---
 blivet/formats/prepboot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/formats/prepboot.py b/blivet/formats/prepboot.py
index c7ed111..e4ba047 100644
--- a/blivet/formats/prepboot.py
+++ b/blivet/formats/prepboot.py
@@ -66,7 +66,7 @@ class PPCPRePBoot(DeviceFormat):
                      os.write(fd, buf)
                      length -= len(buf)
                 else:
-                     buf = '0' * length
+                     buf = '\0' * length
                      os.write(fd, buf)
                      length = 0
             os.close(fd)
-- 
1.8.5.3

_______________________________________________
anaconda-patches mailing list
anaconda-patches at lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches


More information about the anaconda-patches mailing list