--enable-largefile brakes smbfs

Andrew V. Samoilov kai at cmail.ru
Tue Oct 30 12:54:07 UTC 2001


Hello, Pavel!
: 
: > Well, I cannot say smbfs works ok at all, but
: > --enable-largefile brake mc's smbfs.
: 
: That's why it's not called mc-4.6 yet.

Well, now we are one step closer.  Today I fixed this problem
and now I understand it was particularly my fault.

: That's very strange, considering that smbfs_stat only takes pointers.  My 
: experience is that debuggers cannot generally be trusted when strange 
: things happen.  Only debug printing can be fully trusted.

100 %

: You can use "--disable-largefile" to check that it's really not related.  
: I would also try different versions of Windows and the latest Samba 
: server.

It was really related but I still don't understand how.

I will test samba's 2.2.2 smbclient shared library, 
but it seems it is not trivial keep smbfs.c 
consistent with external samba's library - samba API is
not stable.

Regards,
Andrew.

P.S. Have a fun at new place!

Index: smbfs.c
===================================================================
RCS file: /home/sav/.cvsroot/mc/vfs/smbfs.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -p -u -r1.27 -r1.28
--- smbfs.c	14 Aug 2001 00:55:39 -0000	1.27
+++ smbfs.c	30 Oct 2001 12:31:42 -0000	1.28
@@ -21,10 +21,10 @@
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 /* Namespace: exports smbfs_vfs_ops */
+#include <config.h>
 #include <stdio.h>
 #include <sys/types.h>
 
-#include <config.h>
 #include "utilvfs.h"
 #include "samba/include/config.h"
 /* don't load crap in "samba/include/includes.h" we don't use and which 



More information about the mc-devel mailing list