Note that fchown(2) also implies clearing the set-{group,user}-id bits;

update standards conformance.
This commit is contained in:
kleink 1997-04-30 19:35:33 +00:00
parent b28e1b9459
commit 1cacd20927

View File

@ -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