summaryrefslogtreecommitdiffstats
path: root/isys/isys.py
diff options
context:
space:
mode:
Diffstat (limited to 'isys/isys.py')
-rw-r--r--isys/isys.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/isys/isys.py b/isys/isys.py
index 948571ecc..f7ad38a77 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -144,9 +144,7 @@ def unlosetup(device):
os.close(loop)
def ddfile(file, megs, pw = None):
- fd = os.open("/dev/zero", os.O_RDONLY);
- buf = os.read(fd, 1024 * 256)
- os.close(fd)
+ buf = '\x00' * 1024 * 256
fd = os.open(file, os.O_RDWR | os.O_CREAT)