On 9/22/2019 1:18 PM, Ken Brown wrote:
[...]
> @@ -354,6 +353,25 @@ rmdir (const char *dir)
>
> __try
> {
> + if (!*dir)
> + {
> + set_errno (ENOENT);
> + __leave;
> + }
> +
> + /* Following Linux, do not resolve the last component of DIR if
> + it is
If the last component of the directory name is a symlink followed by a
slash, rmdir should fail, even if the symlink resolves to an existing
empty directory.
mkdir was similarly fixed in 2009 in commit
52dba6a5c45e8d8ba1e237a15213311dc11d91fb. Modify a comment to clarify
the purpose of that commi