We don't need this because we actively want rsync to respect the file
creation mask. This does not matter in the common case of a single
source directory because the permission bits will be copied from the
source directory anyway. However, for multiple source directories it
does matter because with umask(0) the top level snapshot directory
is created with mode 777.
/* become session leader */
if (setsid() < 0)
goto err;
- umask(0);
null = open("/dev/null", O_RDWR);
if (null < 0)
goto err;