summaryrefslogtreecommitdiff
path: root/recipes/mtools/files/plainio.patch
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2009-05-25 09:54:29 +0200
committerStefan Schmidt <stefan@datenfreihafen.org>2009-05-25 09:54:29 +0200
commit99dd85f176d8dbc1f81ed96b8bd2409ba3dbcd32 (patch)
tree20e0735f73d2a422f75fcb6bf408efd2bd14d0c1 /recipes/mtools/files/plainio.patch
parent8ef37e61f2e2db01d32dd6ec9a89202e973dddc8 (diff)
parent8ce0d1274b868674c997ef52b1c8753c033a8a08 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.org:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/mtools/files/plainio.patch')
-rw-r--r--recipes/mtools/files/plainio.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes/mtools/files/plainio.patch b/recipes/mtools/files/plainio.patch
new file mode 100644
index 0000000000..b4bd1d6615
--- /dev/null
+++ b/recipes/mtools/files/plainio.patch
@@ -0,0 +1,13 @@
+01_plainio.dpatch by Martin Pitt <mpitt@debian.org>
+Fixes garbage output of mtype under certain circumstances; closes #217413
+
+--- mtools-3.9.9/plain_io.c 2003-02-16 17:18:58.000000000 +0100
++++ mtools-3.9.9/plain_io.c 2004-01-14 00:56:11.000000000 +0100
+@@ -524,6 +524,7 @@
+ printOom();
+ return 0;
+ }
++ memset((void*)This, 0, sizeof(SimpleFile_t));
+ This->scsi_sector_size = 512;
+ This->seekable = 1;
+ #ifdef OS_hpux