smbd: Simplify chroot option in smbd
authorAndreas Schneider <asn@samba.org>
Wed, 10 Feb 2016 15:19:56 +0000 (16:19 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 13 Feb 2016 02:50:54 +0000 (03:50 +0100)
commit92afa1b165841356d6a3fb2ac44d9a5460bffea5
tree9aead43b42c493f929968e5ce3da6781677b8423
parentb504918372df0a55585c92da445f4e1fba4af04a
smbd: Simplify chroot option in smbd

rpmlint has a check for this and prefers to call chdir() before
chroot(). If not it will complain with
missing-call-to-chdir-with-chroot. The old code equivalent secure. See

    http://unixwiz.net/techtips/chroot-practices.html

This removes several unneeded talloc_tos() calls.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Feb 13 03:50:54 CET 2016 on sn-devel-144
source3/smbd/process.c