summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-31 03:55:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-31 03:55:29 +0000
commit95aa3a7b288c6dff38df01ef1c9a353ed7310db3 (patch)
treeb62b0c5e0bb7d4afb9c36ea4bd7ea680b5d336aa
parent4ca7568cd31ada63fd63f94a0007f43e90957912 (diff)
document cdev/bdev semantic change
-rw-r--r--lib/libc/sys/chflags.24
-rw-r--r--usr.bin/chflags/chflags.15
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/sys/chflags.2 b/lib/libc/sys/chflags.2
index a7f5992f5dc..a4210accbfb 100644
--- a/lib/libc/sys/chflags.2
+++ b/lib/libc/sys/chflags.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: chflags.2,v 1.12 1999/06/29 14:09:51 aaron Exp $
+.\" $OpenBSD: chflags.2,v 1.13 1999/07/31 03:55:28 deraadt Exp $
.\" $NetBSD: chflags.2,v 1.6 1995/02/27 12:32:03 cgd Exp $
.\"
.\" Copyright (c) 1989, 1993
@@ -141,6 +141,8 @@ The descriptor is not valid.
.Fa fd
refers to a socket, not to a file.
.It Bq Er EINVAL
+Only the super-user can change flags on block and character devices.
+.It Bq Er EINVAL
The flags value is invalid.
.It Bq Er EPERM
The effective user ID does not match the owner of the file and
diff --git a/usr.bin/chflags/chflags.1 b/usr.bin/chflags/chflags.1
index 359a2db20e8..37d7dafe2bd 100644
--- a/usr.bin/chflags/chflags.1
+++ b/usr.bin/chflags/chflags.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: chflags.1,v 1.5 1999/07/04 11:53:51 aaron Exp $
+.\" $OpenBSD: chflags.1,v 1.6 1999/07/31 03:55:28 deraadt Exp $
.\" $NetBSD: chflags.1,v 1.4 1995/08/31 22:50:22 jtc Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993, 1994
@@ -117,6 +117,9 @@ option is specified.
In addition, these options override each other and the
command's actions are determined by the last one specified.
.Pp
+Only the super-user can change the user flags on block and
+character devices.
+.Pp
You can use "ls -lo" to see the flags of existing files.
.Pp
The