diff options
author | jkh <jkh@FreeBSD.org> | 1998-09-14 19:22:59 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1998-09-14 19:22:59 +0000 |
commit | 5468fdfd0c4063b52da159a8842649834a85de03 (patch) | |
tree | 540ab82d665c3ec39b645f79b6f806e1eee649a1 /usr.sbin/pkg_install | |
parent | 1ff461fca5822cc0588ec40dfc09d76d6439384c (diff) | |
download | FreeBSD-src-5468fdfd0c4063b52da159a8842649834a85de03.zip FreeBSD-src-5468fdfd0c4063b52da159a8842649834a85de03.tar.gz |
Use a more reasonable default umask in case the root umask is too
fascist.
PR: 4014
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r-- | usr.sbin/pkg_install/add/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/add/main.c b/usr.sbin/pkg_install/add/main.c index 7a3c478..4e4fab2 100644 --- a/usr.sbin/pkg_install/add/main.c +++ b/usr.sbin/pkg_install/add/main.c @@ -1,6 +1,6 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.16 1997/10/08 07:45:43 charnier Exp $"; + "$Id: main.c,v 1.17 1998/09/08 10:42:19 jkh Exp $"; #endif /* @@ -143,6 +143,10 @@ main(int argc, char **argv) } /* Make sure the sub-execs we invoke get found */ setenv("PATH", "/sbin:/usr/sbin:/bin:/usr/bin", 1); + + /* Set a reasonable umask */ + umask(022); + if ((err = pkg_perform(pkgs)) != 0) { if (Verbose) warnx("%d package addition(s) failed", err); |