mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
smbd: add some space in recursive_rmdir()
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
007a352c7b
commit
640683990e
@ -859,10 +859,10 @@ bool recursive_rmdir(TALLOC_CTX *ctx,
|
||||
SMB_ASSERT(!is_ntfs_stream_smb_fname(smb_dname));
|
||||
|
||||
dir_hnd = OpenDir(talloc_tos(), conn, smb_dname, NULL, 0);
|
||||
if(dir_hnd == NULL)
|
||||
if (dir_hnd == NULL)
|
||||
return False;
|
||||
|
||||
while((dname = ReadDirName(dir_hnd, &offset, &st, &talloced))) {
|
||||
while ((dname = ReadDirName(dir_hnd, &offset, &st, &talloced))) {
|
||||
struct smb_filename *smb_dname_full = NULL;
|
||||
char *fullname = NULL;
|
||||
bool do_break = true;
|
||||
@ -903,12 +903,12 @@ bool recursive_rmdir(TALLOC_CTX *ctx,
|
||||
goto err_break;
|
||||
}
|
||||
|
||||
if(SMB_VFS_LSTAT(conn, smb_dname_full) != 0) {
|
||||
if (SMB_VFS_LSTAT(conn, smb_dname_full) != 0) {
|
||||
goto err_break;
|
||||
}
|
||||
|
||||
if(smb_dname_full->st.st_ex_mode & S_IFDIR) {
|
||||
if(!recursive_rmdir(ctx, conn, smb_dname_full)) {
|
||||
if (smb_dname_full->st.st_ex_mode & S_IFDIR) {
|
||||
if (!recursive_rmdir(ctx, conn, smb_dname_full)) {
|
||||
goto err_break;
|
||||
}
|
||||
unlink_flags = AT_REMOVEDIR;
|
||||
|
Loading…
Reference in New Issue
Block a user