fixed umask value
This commit is contained in:
parent
13f73ef41a
commit
bd8ea8133f
@ -92,7 +92,7 @@ xbps_pkgdb_lock(struct xbps_handle *xhp)
|
||||
}
|
||||
}
|
||||
|
||||
prev_umask = umask(0644);
|
||||
prev_umask = umask(022);
|
||||
if ((pkgdb_fd = open(xhp->pkgdb_plist, O_CREAT|O_RDWR|O_CLOEXEC, 0664)) == -1) {
|
||||
rv = errno;
|
||||
xbps_dbg_printf(xhp, "[pkgdb] cannot open pkgdb for locking "
|
||||
|
Loading…
Reference in New Issue
Block a user