mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
r20841: Remove more BOOL ok.
Jeremy. (This used to be commit c6b651966039b1c21facd4c4789bf873b5b49426)
This commit is contained in:
parent
6d16226a2d
commit
16f96517f1
@ -3770,7 +3770,6 @@ int reply_rmdir(connection_struct *conn, char *inbuf,char *outbuf, int dum_size,
|
||||
{
|
||||
pstring directory;
|
||||
int outsize = 0;
|
||||
BOOL ok = False;
|
||||
SMB_STRUCT_STAT sbuf;
|
||||
NTSTATUS status;
|
||||
START_PROFILE(SMBrmdir);
|
||||
@ -3789,12 +3788,13 @@ int reply_rmdir(connection_struct *conn, char *inbuf,char *outbuf, int dum_size,
|
||||
return ERROR_NT(status);
|
||||
}
|
||||
|
||||
if (check_name(directory,conn)) {
|
||||
dptr_closepath(directory,SVAL(inbuf,smb_pid));
|
||||
ok = rmdir_internals(conn, directory);
|
||||
if (!check_name(directory,conn)) {
|
||||
END_PROFILE(SMBrmdir);
|
||||
return UNIXERROR(ERRDOS, ERRbadpath);
|
||||
}
|
||||
|
||||
if (!ok) {
|
||||
|
||||
dptr_closepath(directory,SVAL(inbuf,smb_pid));
|
||||
if (!rmdir_internals(conn, directory)) {
|
||||
END_PROFILE(SMBrmdir);
|
||||
return UNIXERROR(ERRDOS, ERRbadpath);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user