Comment 6 for bug 1021579

Revision history for this message
datube (datube) wrote :

Hi,

I've downloaded the sources for the package "ltspfs", applied the following patch, compiled it, replaced "/usr/bin/ltspfs" manually and then it works as expected

Patch:
{{{
--- ltspfs-1.1/src/ltspfs.c
+++ ltspfs-1.1/src/ltspfs.c
@@ -907,14 +907,14 @@
     if (ret)
         return parse_return(&in);

- xdr_int(&in, &stbuf->f_type); /* type of fs */
- xdr_int(&in, &stbuf->f_bsize); /* optimal transfer block sz */
+ xdr_int(&in, &f_type); /* type of fs */
+ xdr_int(&in, &f_bsize); /* optimal transfer block sz */
     xdr_u_longlong_t(&in, &stbuf->f_blocks); /* total data blocks in fs */
     xdr_u_longlong_t(&in, &stbuf->f_bfree); /* free blks in fs */
     xdr_u_longlong_t(&in, &stbuf->f_bavail); /* free blks avail to non-su */
     xdr_u_longlong_t(&in, &stbuf->f_files); /* total file nodes in fs */
     xdr_u_longlong_t(&in, &stbuf->f_ffree); /* free file nodes in fs */
- xdr_int(&in, &stbuf->f_namelen);
+ xdr_int(&in, &f_namelen);

     return OK;
 }

}}}

Hope this helps, would be very great if it would be fixed...