summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_getinfo.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-02-07 20:46:36 -0800
committerJeremy Allison <jra@samba.org>2011-02-08 06:34:41 +0100
commite68f6adca9494166bf7c24c358ea1af718970b0d (patch)
tree59e037538cbd333b367615c690ed218f93b66878 /source3/smbd/smb2_getinfo.c
parentdd7313a1307aa2b3e7d10678a2bce6690e1c2125 (diff)
downloadsamba-e68f6adca9494166bf7c24c358ea1af718970b0d.tar.gz
samba-e68f6adca9494166bf7c24c358ea1af718970b0d.tar.bz2
samba-e68f6adca9494166bf7c24c358ea1af718970b0d.zip
If possible (O_DIRECTORY exists) open an fd for a directory open.
Start of the move towards handle-based code for directory access. Currently makes fstat/fchown code work for directories rather than falling back to pathnames. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Feb 8 06:34:41 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/smbd/smb2_getinfo.c')
-rw-r--r--source3/smbd/smb2_getinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_getinfo.c b/source3/smbd/smb2_getinfo.c
index 5f5cd02fe7..123531c351 100644
--- a/source3/smbd/smb2_getinfo.c
+++ b/source3/smbd/smb2_getinfo.c
@@ -321,7 +321,7 @@ static struct tevent_req *smbd_smb2_getinfo_send(TALLOC_CTX *mem_ctx,
/* We know this name is ok, it's already passed the checks. */
- } else if (fsp && (fsp->is_directory || fsp->fh->fd == -1)) {
+ } else if (fsp && fsp->fh->fd == -1) {
/*
* This is actually a QFILEINFO on a directory
* handle (returned from an NT SMB). NT5.0 seems