Author: jra
Date: 2005-04-21 07:57:41 +0000 (Thu, 21 Apr 2005)
New Revision: 6416

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6416

Log:
Strange old IRIX systems return -1 for telldir() when
end of directory reached. Don't check for that and bail
when reading directory entries as it's a valid value.
Excellent work from Cale Fairchild <[EMAIL PROTECTED]>
tracked this down.
Jeremy.

Modified:
   trunk/source/smbd/dir.c


Changeset:
Modified: trunk/source/smbd/dir.c
===================================================================
--- trunk/source/smbd/dir.c     2005-04-21 07:25:16 UTC (rev 6415)
+++ trunk/source/smbd/dir.c     2005-04-21 07:57:41 UTC (rev 6416)
@@ -1038,9 +1038,6 @@
        while ((n = vfs_readdirname(conn, dirp->dir))) {
                struct name_cache_entry *e;
                dirp->offset = SMB_VFS_TELLDIR(conn, dirp->dir);
-               if (dirp->offset == -1) {
-                       return NULL;
-               }
                dirp->name_cache_index = (dirp->name_cache_index+1) % 
NAME_CACHE_SIZE;
 
                e = &dirp->name_cache[dirp->name_cache_index];

Reply via email to