diff options
author | Volker Lendecke <vl@samba.org> | 2020-02-04 15:28:16 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2020-02-07 21:01:31 +0000 |
commit | 4776456ce4e99c26e5aecd2519ed69b984eca505 (patch) | |
tree | 8d93b11f8bcf4ac8ec5b83e01a285ab0f85fb204 /source3/smbd/proto.h | |
parent | 8047876f4ac71ed103fbc4aba8ace69fac45ece9 (diff) | |
download | samba-4776456ce4e99c26e5aecd2519ed69b984eca505.tar.gz |
smbd: Make unix_perms_from_wire() public
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/proto.h')
-rw-r--r-- | source3/smbd/proto.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index d325f7d56e0..02a8c9873c3 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -1197,6 +1197,19 @@ void reply_findnclose(struct smb_request *req); void reply_trans2(struct smb_request *req); void reply_transs2(struct smb_request *req); +enum perm_type { + PERM_NEW_FILE, + PERM_NEW_DIR, + PERM_EXISTING_FILE, + PERM_EXISTING_DIR +}; + +NTSTATUS unix_perms_from_wire(connection_struct *conn, + const SMB_STRUCT_STAT *psbuf, + uint32_t perms, + enum perm_type ptype, + mode_t *ret_perms); + /* The following definitions come from smbd/uid.c */ bool change_to_guest(void); |