lib/util.o: In function `smbd_mktemp': lib/util.o(.text+0x4ee1): the use of `mktemp' is dangerous, better use `mkstemp'
It wraps it with something to secure it (because mkstemp isn't portable...)
Samba 2.2.1 will ship with this finally fixed, with mkstemp used where available and secure.
This is fixed in the errata samba releases.