libxbps: xbps_set_pkg_state_installed: create metadir with 0755 perms.

This commit is contained in:
Juan RP 2011-11-09 16:36:11 +01:00
parent a426bad11d
commit bffff1a00d

View File

@ -269,7 +269,7 @@ xbps_set_pkg_state_installed(const char *pkgname,
/* Create metadir if doesn't exist */
if (access(metadir, X_OK) == -1) {
if (errno == ENOENT) {
if (xbps_mkpath(metadir, 0750) != 0) {
if (xbps_mkpath(metadir, 0755) != 0) {
xbps_dbg_printf("[pkgstate] failed to create "
"metadir %s: %s\n", metadir,
strerror(errno));