From 1cacd20927c42f9bf7902ebad8acc6a5fd7c5d25 Mon Sep 17 00:00:00 2001 From: kleink Date: Wed, 30 Apr 1997 19:35:33 +0000 Subject: [PATCH] Note that fchown(2) also implies clearing the set-{group,user}-id bits; update standards conformance. --- lib/libc/sys/chown.2 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/libc/sys/chown.2 b/lib/libc/sys/chown.2 index 94d8972727fe..8395baf24e7a 100644 --- a/lib/libc/sys/chown.2 +++ b/lib/libc/sys/chown.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: chown.2,v 1.10 1995/10/12 15:40:47 jtc Exp $ +.\" $NetBSD: chown.2,v 1.11 1997/04/30 19:35:33 kleink Exp $ .\" .\" Copyright (c) 1980, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -66,7 +66,9 @@ but the change capability is restricted to the super-user. .Pp .Fn Chown -clears the set-user-id and set-group-id bits +and +.Fn fchown +clear the set-user-id and set-group-id bits on the file to prevent accidental or mischievous creation of set-user-id and set-group-id programs. @@ -136,7 +138,7 @@ An I/O error occurred while reading from or writing to the file system. .Sh STANDARDS The .Fn chown -function is expected to conform to +function conforms to .St -p1003.1-88 . .Sh HISTORY The