summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-12-04 22:48:25 +0000
committerJeremy Allison <jra@samba.org>2002-12-04 22:48:25 +0000
commit39734e2be8c9d2b87be2872b3bcb7bc2762fc8bc (patch)
tree8fc7ffba185ac7a814ce4cd05e7843126e912725
parent6d66efe6c2a3c716f0aff857d4c9b88203efe733 (diff)
downloadsamba-39734e2be8c9d2b87be2872b3bcb7bc2762fc8bc.tar.gz
samba-39734e2be8c9d2b87be2872b3bcb7bc2762fc8bc.tar.bz2
samba-39734e2be8c9d2b87be2872b3bcb7bc2762fc8bc.zip
Added Volker's directory fix - save the attributes
from the first call. Jeremy. (This used to be commit 2fe7504a08b692ec791c853e7a260a06142b7595)
-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));