summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-12-04 22:48:13 +0000
committerJeremy Allison <jra@samba.org>2002-12-04 22:48:13 +0000
commitd4103a09918bf375804bb102ac29237345f59978 (patch)
tree678647e8318802a4bef66b6a45c74b5aa48df262 /source3/smbd
parent14662de563c8caf63ded20654ff19471eafbf88f (diff)
downloadsamba-d4103a09918bf375804bb102ac29237345f59978.tar.gz
samba-d4103a09918bf375804bb102ac29237345f59978.tar.bz2
samba-d4103a09918bf375804bb102ac29237345f59978.zip
Added Volker's directory fix - save the attributes
from the first call. Jeremy. (This used to be commit b60a441b91dccdeadc125476ac3306b938941057)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index adcc8c989d..6c2698c297 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -689,6 +689,9 @@ int reply_search(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
return ERROR_DOS(ERRDOS,ERRnofids);
}
dptr_set_wcard(dptr_num, strdup(mask));
+ dptr_set_attr(dptr_num, dirtype);
+ } else {
+ dirtype = dptr_attr(dptr_num);
}
DEBUG(4,("dptr_num is %d\n",dptr_num));