Re: grokking libgsf

2009-05-05 Thread Allin Cottrell
On Tue, 5 May 2009, Allin Cottrell wrote: > Now that I have a somewhat better understanding of how libgsf > works, here's a suggestion for a patch (attached). Sorry, the patch contained a breakage, trying again. Allin Cottrelldiff -ub libgsf-1.14.12.orig/gsf/gsf-infile-zip.c libgsf-1.14.12.new/

Re: grokking libgsf

2009-05-05 Thread Allin Cottrell
On Mon, 4 May 2009, Morten Welinder wrote: > You want something like this... Now that I have a somewhat better understanding of how libgsf works, here's a suggestion for a patch (attached). It adds the ability to read the timestamp from files inside a zip archive, and to set the time stamp on fi

Re: grokking libgsf

2009-05-04 Thread Allin Cottrell
On Mon, 4 May 2009, Morten Welinder wrote: > You want something like this... > > diff --git a/tests/test-cp-zip.c b/tests/test-cp-zip.c > index 5523f33..2169f78 100644 > --- a/tests/test-cp-zip.c > +++ b/tests/test-cp-zip.c Great, thanks! Allin Cottrell __

Re: grokking libgsf

2009-05-04 Thread Morten Welinder
You want something like this... diff --git a/tests/test-cp-zip.c b/tests/test-cp-zip.c index 5523f33..2169f78 100644 --- a/tests/test-cp-zip.c +++ b/tests/test-cp-zip.c @@ -26,16 +26,16 @@ #include #include +#include #include #include #include static void -clone (GsfInfile *in, Gsf

Re: grokking libgsf

2009-05-04 Thread Allin Cottrell
On Mon, 4 May 2009, Jon K Hellan wrote: > Allin Cottrell wrote: > > I'm trying some tests with the hope of switching to libgsf in > > place of low-level fiddling with pkzip structures in reading and > > writing zipfiles. So far I'm only partially successful and I'd > > much appreciate any guidanc

Re: grokking libgsf

2009-05-04 Thread Jon K Hellan
Allin Cottrell wrote: I'm trying some tests with the hope of switching to libgsf in place of low-level fiddling with pkzip structures in reading and writing zipfiles. So far I'm only partially successful and I'd much appreciate any guidance. I have the following C source (with correct headers i

grokking libgsf

2009-05-01 Thread Allin Cottrell
I'm trying some tests with the hope of switching to libgsf in place of low-level fiddling with pkzip structures in reading and writing zipfiles. So far I'm only partially successful and I'd much appreciate any guidance. I have the following C source (with correct headers included, and followed by