Author :
florian
Date :
2019-02-16 10:46:22
Hash :dbed5971 Message :Introduce mkstempat(), a variation on mkstemp(3) and mkstemplinkat().
mkstempat() works exactly like mkstemp(3) except that it replaces
open(2) with openat(2) so that it can be used in rsync_downloader()
to easily deal with relative paths.
mkstemplinkat() works somewhat like mkdtemp() to create a template
symlink.
Use the mkstemplinkat() to create or update symlinks and overwrite
existing objects including empty directories that might exist under
the destination name.
"you snooze, you get collisions" deraadt@