David Faure <[EMAIL PROTECTED]> writes:
> On Sun, May 07, 2000 at 07:01:04AM -0000, [EMAIL PROTECTED] wrote:
> >
> > In LM6.1 when using KDE if you clicked on a tar file it opened it
> > properly. Since then in LM7 and LM7.1b it opens up but has garbage
> > directories only. What happened to this?
>
> The format of the output of the 'tar' program changed in between,
> breaking kfm.
> A patch for kfm is available, I sent it on an internal mailing-list,
> but it hasn't been applied apparently :(((
kdebase.spec :
Patch108: kdebase-1.1-tar.patch.bz2
[..]
%patch108 -p0
this one ? :
--- kfm/kioslave/tar.cpp
+++ kfm/kioslave/tar.cpp 2000/04/26 14:17:04
@@ -241,14 +241,19 @@
{
char p_access[80], p_owner[80], p_group[80];
char p_size[80], p_date[80], p_name[250];
+ char p_date_part1[80], p_date_part2[80];
+ int ret;
readstr = fgets(buffer,1024,dirfile);
- if (readstr && (sscanf(buffer,
- " %[-dlrwxst] %[0-9.a-zA-Z_]/%[0-9.a-zA-Z_] %[0-9] %17[a-zA-Z0-9:- ] %[^\n]",
- // is \r necessary, together with \n ? Not here...
- p_access, p_owner, p_group,
- p_size, p_date, p_name) == 6))
+ ret=(sscanf(buffer,
+ " %[-dlrwxst] %[0-9.a-zA-Z_]/%[0-9.a-zA-Z_] %[0-9] %[^ ] %[^ ] %[^\n]",
+ p_access, p_owner, p_group, p_size, p_date_part1, p_date_part2, p_name));
+ strcpy( &p_date[0], &p_date_part1[0] );
+ strcat( &p_date[0], " " );
+ strcat( &p_date[0], &p_date_part2[0] );
+
+ if (readstr && (ret==7) )
{
// Link?
QString tmp( p_name );
--
MandrakeSoft Inc http://www.mandrakesoft.com
In travel. --Chmouel