CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2019/02/16 03:46:22

Modified files:
        usr.bin/rsync  : Makefile downloader.c extern.h uploader.c 
Added files:
        usr.bin/rsync  : mktemp.c 

Log 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@

Reply via email to