summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/vfs_posix.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-10 07:24:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:08 -0500
commit89efea81d9d67ebed159321e8ea496eee54c2deb (patch)
tree9ffc195a05eab698b1697015410f15546e48e266 /source4/ntvfs/posix/vfs_posix.h
parentc74d5b9204c004f30494645f04d34306667990c8 (diff)
downloadsamba-89efea81d9d67ebed159321e8ea496eee54c2deb.tar.gz
samba-89efea81d9d67ebed159321e8ea496eee54c2deb.tar.bz2
samba-89efea81d9d67ebed159321e8ea496eee54c2deb.zip
r18319: fixed the directory search resume code on IRIX
The problem was twofold: 1) irix returns 64 bit numbers in telldir(). The protocol uses a 32 bit resume key. We now cope with this properly using the code in pvfs_list_seek_ofs(). 2) irix returns 0xFFFFFFFF from telldir() for the last entry in the directory. When added to DIR_OFFSET_BASE this became DIR_OFFSET_DOTDOT which meant an infinite loop! (This used to be commit 8cce9740ed0da9f08d6821beb4acaa9d28d149c2)
Diffstat (limited to 'source4/ntvfs/posix/vfs_posix.h')
-rw-r--r--source4/ntvfs/posix/vfs_posix.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/vfs_posix.h b/source4/ntvfs/posix/vfs_posix.h
index a788ddd19c..82a3d34172 100644
--- a/source4/ntvfs/posix/vfs_posix.h
+++ b/source4/ntvfs/posix/vfs_posix.h
@@ -183,7 +183,7 @@ struct pvfs_search_state {
struct pvfs_search_state *prev, *next;
struct pvfs_state *pvfs;
uint16_t handle;
- uint_t current_index;
+ off_t current_index;
uint16_t search_attrib;
uint16_t must_attrib;
struct pvfs_dir *dir;