mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: Move can_delete_directory to smbd/, remove shim
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 13 19:00:37 CET 2011 on sn-devel-104
This commit is contained in:
parent
34d58c9d92
commit
5efd7e16c2
@ -51,15 +51,6 @@ void send_stat_cache_delete_message(struct messaging_context *msg_ctx,
|
||||
}
|
||||
}
|
||||
|
||||
NTSTATUS can_delete_directory(struct connection_struct *conn,
|
||||
const char *dirname)
|
||||
{
|
||||
if (shim.can_delete_directory) {
|
||||
return shim.can_delete_directory(conn, dirname);
|
||||
}
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
bool change_to_root_user(void)
|
||||
{
|
||||
if (shim.change_to_root_user) {
|
||||
|
@ -35,9 +35,6 @@ struct smbd_shim
|
||||
void (*send_stat_cache_delete_message)(struct messaging_context *msg_ctx,
|
||||
const char *name);
|
||||
|
||||
NTSTATUS (*can_delete_directory)(struct connection_struct *conn,
|
||||
const char *dirname);
|
||||
|
||||
bool (*change_to_root_user)(void);
|
||||
|
||||
void (*contend_level2_oplocks_begin)(files_struct *fsp,
|
||||
|
@ -1674,8 +1674,8 @@ bool SearchDir(struct smb_Dir *dirp, const char *name, long *poffset)
|
||||
Is this directory empty ?
|
||||
*****************************************************************/
|
||||
|
||||
NTSTATUS smbd_can_delete_directory(struct connection_struct *conn,
|
||||
const char *dirname)
|
||||
NTSTATUS can_delete_directory(struct connection_struct *conn,
|
||||
const char *dirname)
|
||||
{
|
||||
NTSTATUS status = NT_STATUS_OK;
|
||||
long dirpos = 0;
|
||||
|
@ -151,7 +151,6 @@ static const struct smbd_shim smbd_shim_fns =
|
||||
{
|
||||
.cancel_pending_lock_requests_by_fid = smbd_cancel_pending_lock_requests_by_fid,
|
||||
.send_stat_cache_delete_message = smbd_send_stat_cache_delete_message,
|
||||
.can_delete_directory = smbd_can_delete_directory,
|
||||
.change_to_root_user = smbd_change_to_root_user,
|
||||
|
||||
.contend_level2_oplocks_begin = smbd_contend_level2_oplocks_begin,
|
||||
|
@ -241,8 +241,6 @@ void DirCacheAdd(struct smb_Dir *dirp, const char *name, long offset);
|
||||
bool SearchDir(struct smb_Dir *dirp, const char *name, long *poffset);
|
||||
NTSTATUS can_delete_directory(struct connection_struct *conn,
|
||||
const char *dirname);
|
||||
NTSTATUS smbd_can_delete_directory(struct connection_struct *conn,
|
||||
const char *dirname);
|
||||
|
||||
/* The following definitions come from smbd/dmapi.c */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user