dotnet sdk:
Hi all,
I am having a problem with the Directory.CreateDirectory method. I want to
use this function to create a new directory and set a security descriptor at
the same time.
This works fine except the new directory never inherits aces from it's
parent.
For example:
CreateDirectory("mydir", directorySecurity) results in a directory with no
aces inherited.
but
dirInfo = CreateDirectory("mydir");
dirInfo.SetAccessControl(directorySecurity) results in a directory with
aces inherited.
Does this make sense to anyone ? It seems like this api is broken.
Thanks for any information on this.
Jos