Le Jeudi 18 Juillet 2002 18:32, Brad Fritz a écrit :
> On Thu, 18 Jul 2002 11:13:48 CDT Russ Price wrote:
> > Brad Fritz wrote:
> >
> > I'm using RC3.  Here's what I get:
> >
> > # gzip --help
> > BusyBox v0.60.3 (2002.06.08-17:56+0000) multi-call binary
> >
> > # gzip <foo.txt >bar.txt.gz
> > # ls -l bar.txt.gz
> > -rw-r--r--    1 root     root            0 Jul 18 11:09 bar.txt.gz
>
> Hmm.  From http://leaf.sourceforge.net/devel/jnilo/biabout.html :
>
>   1.5. Changelog
>     Current version: 1.0-rc3 - June,16 2002
>        [snip]
>     - Busybox updated to 0.60.3: saves 10k and ls command output is
>       now in colour :-)
>
> Maybe part of that 10k came out of gzip. ;)  I didn't see the
> busybox config file posted under
> http://leaf.sourceforge.net/devel/jnilo/bering/rc3/ ,
> so we may need the Bering crew to step in for futher diagnosis.

Here is the response:
There is indeed a bug in the 0.63 version of busybox as far a gzip is 
concerned. I was indeed the first one to notice it since backup was not 
working any more :-(. But you can fix it easily (I did it in the backup 
script but forgot /bin/savelog

firewall: -root-
# gzip --help
BusyBox v0.60.3 (2002.06.08-17:56+0000) multi-call binary

Usage: gzip [OPTION]... FILE


firewall: -root-
# echo "foobar" >foo

firewall: -root-
# gzip < foo - >foo.gz    <---- NOTICE the "-" before "<"

firewall: -root-
# ls -l foo*
-rw-r--r--    1 root     root            7 Jul 18 20:16 foo
-rw-r--r--    1 root     root           27 Jul 18 20:17 foo.gz

firewall: -root-
#

So the fix in /bin/savelog
is to replace the line:
 $COMPRESS < $newname.0 > $newfile
by 
 $COMPRESS < $newname.0 - > $newfile

Then save root.lrp

That's all folks !
Will be corrected in rc4. Thanks for spotting the bug

Jacques


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to