util: Allow symlinks in directory_create_or_exist
commit672212cecdd7a7de40acdc81c56e2996ea82c090
authorChristof Schmitt <cs@samba.org>
Fri, 14 Aug 2020 16:36:26 +0000 (14 09:36 -0700)
committerVolker Lendecke <vl@samba.org>
Sun, 16 Aug 2020 05:45:35 +0000 (16 05:45 +0000)
tree54edd2aa60b13b9a240c783fe4631f0581309969
parent53a1d034f3e47ed3c5ec4f9b6ca0d2d695e8d873
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>
lib/util/util.c