util: Allow symlinks in directory_create_or_exist
commit0797eef2901cc0b8d1fcc11f368285cfcf1b0400
authorChristof Schmitt <cs@samba.org>
Fri, 14 Aug 2020 16:36:26 +0000 (14 09:36 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 17 Aug 2020 11:20:20 +0000 (17 11:20 +0000)
tree2c081a2311b71da90f211963a8b2301cf0725bfb
parent6b8d52984e5d339f353e8e04fa3812442074da01
util: Allow symlinks in directory_create_or_exist

Commit 9f60a77e0b updated the check to avoid having files or other
objects instead of a directory. This missed the valid case that there
might be a symlink to a directory. Updated the check accordingly to
allow symlinks to directories.

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

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 672212cecdd7a7de40acdc81c56e2996ea82c090)
lib/util/util.c