Fedora Account System
Red Hat Associate
Red Hat Customer
when librepo downloads a file, it uses 0660 permissions for it. This is the default that can not be changed AFAIK, the 0660 pre-umasked permission bits are hardcoded, e.g. yum.c:218: fd = open(path, O_CREAT|O_TRUNC|O_RDWR, 0660);) This is generally not what the calling code would expect: the API either has to have a configuration option for the default permissions mode, or, even simpler, just use 0666 that gets anded to the process's umask.
commit 9b69b7df33cf778550de82c2a560989bae213659 (https://github.com/Tojaj/librepo/commit/9b69b7df33cf778550de82c2a560989bae213659)