diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-04-21 15:47:29 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-04-21 15:47:29 +0000 |
commit | 631703afd6002f38b0b4e76504c91e3ab397f3f3 (patch) | |
tree | e1c92eb0a24aa1d97dc1fa06ef01e3e05d518f58 /sys/kern/kern_sig.c | |
parent | 8a8d1486bb7edce317af04782ff5f525856713f9 (diff) |
Change kernel-only open flag FNOSYMLINK to userland-visible O_NOFOLLOW;
adapated from FreeBSD. Also change O_FSYNC to the more standard O_SYNC
and document it. open(2) needs some real examples for proper usage,
to come later.
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r-- | sys/kern/kern_sig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 41c7badf86f..de148e69821 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sig.c,v 1.36 2000/03/03 11:31:43 art Exp $ */ +/* $OpenBSD: kern_sig.c,v 1.37 2000/04/21 15:47:27 millert Exp $ */ /* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */ /* @@ -1199,7 +1199,7 @@ coredump(p) sprintf(name, "%s.core", p->p_comm); NDINIT(&nd, LOOKUP, NOFOLLOW, UIO_SYSSPACE, name, p); - error = vn_open(&nd, O_CREAT | FWRITE | FNOSYMLINK, S_IRUSR | S_IWUSR); + error = vn_open(&nd, O_CREAT | FWRITE | O_NOFOLLOW, S_IRUSR | S_IWUSR); if (error) { crfree(cred); |