summaryrefslogtreecommitdiff
path: root/source/include/smb_macros.h
diff options
context:
space:
mode:
authorbubulle <bubulle@alioth.debian.org>2008-11-01 11:09:46 +0000
committerbubulle <bubulle@alioth.debian.org>2008-11-01 11:09:46 +0000
commita2b71a0141763c20552bb45eeb4cb78c4b513118 (patch)
tree85b64d98387145ea4e00c1b529e1820542a979a3 /source/include/smb_macros.h
parent2203bd59918d6d70515f9dad601cb5c0ef098092 (diff)
downloadsamba-a2b71a0141763c20552bb45eeb4cb78c4b513118.tar.gz
Revert the merge of 3.3.0~pre2 in upstream branch
git-svn-id: svn://svn.debian.org/svn/pkg-samba/branches/samba/upstream@2200 fc4039ab-9d04-0410-8cac-899223bdd6b0
Diffstat (limited to 'source/include/smb_macros.h')
-rw-r--r--source/include/smb_macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/include/smb_macros.h b/source/include/smb_macros.h
index 20e2a9a443..0e21431226 100644
--- a/source/include/smb_macros.h
+++ b/source/include/smb_macros.h
@@ -75,6 +75,8 @@
return ERROR_NT(NT_STATUS_INVALID_HANDLE); \
} while(0)
+#define FNUM_OK(fsp,c) ((fsp) && !(fsp)->is_directory && (c)==(fsp)->conn && current_user.vuid==(fsp)->vuid)
+
/* you must add the following extern declaration to files using this macro
* (do not add it to the macro as that causes nested extern declaration warnings)
* extern struct current_user current_user;