mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
Always issue the mkdir call to avoid the TOCTOU issue. Only if there is already an object with the requested name, check whether it is a directory. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>