SOURCES: file-offset.patch (NEW) - make offset zero initially
arekm
arekm at pld-linux.org
Fri Nov 24 23:55:24 CET 2006
Author: arekm Date: Fri Nov 24 22:55:23 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- make offset zero initially
---- Files affected:
SOURCES:
file-offset.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/file-offset.patch
diff -u /dev/null SOURCES/file-offset.patch:1.1
--- /dev/null Fri Nov 24 23:55:23 2006
+++ SOURCES/file-offset.patch Fri Nov 24 23:55:18 2006
@@ -0,0 +1,19 @@
+--- file-4.18.org/src/funcs.c 2006-10-31 20:37:17.000000000 +0100
++++ file/src/funcs.c 2006-11-25 00:52:17.259907000 +0100
+@@ -151,10 +151,16 @@
+ protected int
+ file_reset(struct magic_set *ms)
+ {
++ struct mlist *ml;
+ if (ms->mlist == NULL) {
+ file_error(ms, 0, "no magic files loaded");
+ return -1;
+ }
++ for (ml = ms->mlist->next; ml != ms->mlist; ml = ml->next) {
++ uint32_t magindex;
++ for (magindex = 0; magindex < ml->nmagic; magindex++)
++ ml->magic[magindex].offset = 0;
++ }
+ ms->o.ptr = ms->o.buf;
+ ms->haderr = 0;
+ ms->error = -1;
================================================================
More information about the pld-cvs-commit
mailing list