bug in vfs-wrap.c ?

andreas moroder claudiamoroder at st-ulrich.suedtirol.net
Sun Dec 16 07:38:01 GMT 2001


Hello,

in vfs-wrap.c there are the lines

struct dirent *vfswrap_readdir(connection_struct *conn, DIR *dirp)
{
    struct dirent *result;

    START_PROFILE(syscall_readdir);

#ifdef VFS_CHECK_NULL
    if (dirp == NULL) {
	smb_panic("NULL pointer passed to vfswrap_readdir()\n");
    }
#endif

    result = readdir(dirp);
    END_PROFILE(syscall_readdir);
    return result;
}

shouldn't 

sys_readdir be called here ?


I did change skel.c the following way to test the functions

struct dirent *skel_readdir(struct connection_struct *conn, DIR *dirp)
{
	struct dirent *ent;
	ent=default_vfs_ops.readdir(conn, dirp);
	if (ent!=NULL) {
	    DEBUG(0,("--%s\n",strlen(ent->d_name)));
	}

	return ent;
}

Why is ent->d_name allways empty ( len=0 )

Bye

Andreas





More information about the samba-technical mailing list