Note that fchown(2) also implies clearing the set-{group,user}-id bits;
update standards conformance.
This commit is contained in:
parent
b28e1b9459
commit
1cacd20927
@ -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
|
.\" Copyright (c) 1980, 1991, 1993, 1994
|
||||||
.\" The Regents of the University of California. All rights reserved.
|
.\" The Regents of the University of California. All rights reserved.
|
||||||
@ -66,7 +66,9 @@ but the change
|
|||||||
capability is restricted to the super-user.
|
capability is restricted to the super-user.
|
||||||
.Pp
|
.Pp
|
||||||
.Fn Chown
|
.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
|
on the file
|
||||||
to prevent accidental or mischievous creation of
|
to prevent accidental or mischievous creation of
|
||||||
set-user-id and set-group-id programs.
|
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
|
.Sh STANDARDS
|
||||||
The
|
The
|
||||||
.Fn chown
|
.Fn chown
|
||||||
function is expected to conform to
|
function conforms to
|
||||||
.St -p1003.1-88 .
|
.St -p1003.1-88 .
|
||||||
.Sh HISTORY
|
.Sh HISTORY
|
||||||
The
|
The
|
||||||
|
Loading…
Reference in New Issue
Block a user