Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Fix umask inheritance problem introduced by the cwd...
details: https://anonhg.NetBSD.org/src/rev/8cbe399b5028
branches: trunk
changeset: 473868:8cbe399b5028
user: christos <christos%NetBSD.org@localhost>
date: Sun Jun 20 08:54:13 1999 +0000
description:
Fix umask inheritance problem introduced by the cwdi changes, whereby
children processes will not inherit the parent's umask but 022.
diffstat:
sys/kern/kern_descrip.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r cfbe4a99bf06 -r 8cbe399b5028 sys/kern/kern_descrip.c
--- a/sys/kern/kern_descrip.c Sun Jun 20 07:55:00 1999 +0000
+++ b/sys/kern/kern_descrip.c Sun Jun 20 08:54:13 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_descrip.c,v 1.59 1999/05/05 20:01:08 thorpej Exp $ */
+/* $NetBSD: kern_descrip.c,v 1.60 1999/06/20 08:54:13 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -730,7 +730,6 @@
struct proc *p;
{
struct cwdinfo *cwdi;
- extern int cmask;
cwdi = pool_get(&cwdi_pool, PR_WAITOK);
@@ -739,7 +738,7 @@
cwdi->cwdi_rdir = p->p_cwdi->cwdi_rdir;
if (cwdi->cwdi_rdir)
VREF(cwdi->cwdi_rdir);
- cwdi->cwdi_cmask = cmask;
+ cwdi->cwdi_cmask = p->p_cwdi->cwdi_cmask;
cwdi->cwdi_refcnt = 1;
return (cwdi);
Home |
Main Index |
Thread Index |
Old Index