Returning "fake" directories via VFS

Andreas Lund floyd at atc.no
Wed Mar 20 11:54:26 GMT 2002


Wed, 20 Mar 2002 21:50:47 +1100, Andrew Bartlett <abartlet at pcug.org.au>
wrote:
> Run ./config.status --recheck && ./config.status.  configure and
> Makefile.in both changed to set the -rdynamic (or eqiv) flag, which is
> needed for this to work.

Thanks, I finally got it to work, but now I have a different problem. It seems
that the 'dirent' type is different for vfs.c and the modules, which means if
I try to rewrite/"fake" dirent structs then Samba gets confused.

For instance, if my module does
snprintf(dirent->d_name, MAXNAMLEN, "abcdefghijklmnopqrstuvwxyz");
Then Samba will show the entry as "ijklmnopqrstuvwxyz"

What's the correct way to fix this?


-Andreas.




More information about the samba-technical mailing list