Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Force umask to 022
Baptiste Daroussin committed 14 years ago
commit 43e2eb488deae4a717840587e54b02857d809f2c
parent ed7ba1d
1 file changed +2 -0
modified pkg/main.c
@@ -29,6 +29,7 @@

#include <sys/param.h>
#include <sys/jail.h>
+
#include <sys/stat.h>

#include <assert.h>
#include <err.h>
@@ -195,6 +196,7 @@ main(int argc, char **argv)
	if (argc == 0 && version == 0)
		usage();

+
	umask(022);
	pkg_event_register(&event_callback, &debug);

	/* reset getopt for the next call */