Previously backup files were created with permissions of 0600 before the
umask was subtracted. Set it to 0666 now; the user can adjust the
permissions to make them more restrictive by changing the umask or
permissions in the parent directories.
filter_fd = spawn_filter(real_fd);
if (tar_fdopen(&t, filter_fd, (char *)path.c_str(), NULL,
- O_WRONLY | O_CREAT, 0600, TAR_VERBOSE | TAR_GNU) == -1)
+ O_WRONLY | O_CREAT, 0666, TAR_VERBOSE | TAR_GNU) == -1)
throw IOException("Error opening Tarfile");
}