Profiles Tool

Richard Sharpe rsharpe at
Fri Jun 17 06:15:42 GMT 2005

On Fri, 17 Jun 2005, Nathan Ingersoll wrote:

> I have been working on converting a domain from NT4 to a Samba PDC,
> and ran into an issue with the profiles tool. While it would print the
> correct SID changes to stderr, the file was not updated with the new
> SID.
> After a little digging, I found that the call to mmap was changed to
> MAP_PRIVATE in February with this commit
> There was no comment in the commit message about that change in mmap
> behavior and I was unable to find any list discussions about it.
> MAP_PRIVATE will prevent the changes from being written back to the
> file, and setting it back to MAP_SHARED solved the issue for me. I
> believe the intent of the patch was to just change the start argument
> to mmap to be 0. Is there a reason I'm missing for it to be set to

No. That was my mistake. I needed to fix profiles to work on FreeBSD, and
mistakenly changed it to MAP_PRIVATE.

I will try to fix that tomorrow.

Richard Sharpe, rsharpe[at], rsharpe[at],

More information about the samba-technical mailing list