diff options
author | Steven Danneman <steven.danneman@isilon.com> | 2009-01-22 20:18:56 -0800 |
---|---|---|
committer | Steven Danneman <steven.danneman@isilon.com> | 2009-02-09 23:56:16 -0800 |
commit | 25d345eb39c69b2b42a966846ae893b068de40a4 (patch) | |
tree | 532ac614e4ff71a208780ebff2e7c416143312d8 /source3/smbd/msdfs.c | |
parent | af0e199b31ea4132e369508d72888757887b3327 (diff) | |
download | samba-25d345eb39c69b2b42a966846ae893b068de40a4.tar.gz |
Pass stat buffer down through all levels of VFS_READDIR wrappers
* VFS_OP_READDIR can now provide stat information, take advantage of it
if it's available
* is_visible_file(): optimistically expect the provided stat buffer is
already valid
* dptr_ReadDirName(): refactor code for easier readability, functionality
is the same
Diffstat (limited to 'source3/smbd/msdfs.c')
-rw-r--r-- | source3/smbd/msdfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index adeaf96bd2d..4d692cd2d2b 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -1485,7 +1485,7 @@ static int count_dfs_links(TALLOC_CTX *ctx, int snum) goto out; } - while ((dname = vfs_readdirname(conn, dirp)) != NULL) { + while ((dname = vfs_readdirname(conn, dirp, NULL)) != NULL) { if (is_msdfs_link(conn, dname, NULL)) { @@ -1585,7 +1585,7 @@ static int form_junctions(TALLOC_CTX *ctx, goto out; } - while ((dname = vfs_readdirname(conn, dirp)) != NULL) { + while ((dname = vfs_readdirname(conn, dirp, NULL)) != NULL) { char *link_target = NULL; if (cnt >= jn_remain) { DEBUG(2, ("form_junctions: ran out of MSDFS " |