]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:modules:recycle - fix crash in recycle_unlink_internal
authorAndrew Walker <awalker@ixsystems.com>
Thu, 28 Oct 2021 20:01:42 +0000 (16:01 -0400)
committerJeremy Allison <jra@samba.org>
Sat, 30 Oct 2021 04:34:53 +0000 (04:34 +0000)
commitbe3a47e22ad6be204f4a7d6070f82f990c17e6fb
tree3c1a49b4d64292af1acad5d9db59ad2d9d69a694
parent14f56750fcf51a1d6daa14da08b34eb789241a23
s3:modules:recycle - fix crash in recycle_unlink_internal

Original logic for separating path from base name assumed
that we were using same string to determine offset when
getting the parent dir name (smb_fname->base_name).

Simplify by using parent_dirname() to split the path
from base name.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14888

Signed-off-by: Andrew Walker <awalker@ixsystems.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Oct 30 04:34:53 UTC 2021 on sn-devel-184
source3/modules/vfs_recycle.c