From bd8ea8133f49f049ece0d506b66533549054b0ca Mon Sep 17 00:00:00 2001 From: Wolfgang Draxinger Date: Wed, 19 Aug 2015 15:42:48 +0200 Subject: [PATCH] fixed umask value --- lib/pkgdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pkgdb.c b/lib/pkgdb.c index 7652099d..011bc7a6 100644 --- a/lib/pkgdb.c +++ b/lib/pkgdb.c @@ -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 "