diff options
author | 2013-05-08 16:13:12 +0000 | |
---|---|---|
committer | 2013-05-08 16:13:12 +0000 | |
commit | 24c55d9bac9957e6904c59cb139ad0008943b300 (patch) | |
tree | d97ee934b102f7704e2ea5f8a06ec8f55c304164 /lib | |
parent | Don't declare ___start static, for gcc4 would optimize it out. (diff) | |
download | wireguard-openbsd-24c55d9bac9957e6904c59cb139ad0008943b300.tar.xz wireguard-openbsd-24c55d9bac9957e6904c59cb139ad0008943b300.zip |
clarify when EACCESS can fail. if from is read only, you're out of luck.
failure to document this case noticed by Mike Small
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/rename.2 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/sys/rename.2 b/lib/libc/sys/rename.2 index d38df66b873..1421b4428e6 100644 --- a/lib/libc/sys/rename.2 +++ b/lib/libc/sys/rename.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rename.2,v 1.18 2013/04/01 20:16:31 guenther Exp $ +.\" $OpenBSD: rename.2,v 1.19 2013/05/08 16:13:12 tedu Exp $ .\" $NetBSD: rename.2,v 1.7 1995/02/27 12:36:15 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)rename.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: April 1 2013 $ +.Dd $Mdocdate: May 8 2013 $ .Dt RENAME 2 .Os .Sh NAME @@ -136,8 +136,12 @@ does not exist. .It Bq Er EACCES A component of either path prefix denies search permission. .It Bq Er EACCES -The requested link requires writing in a directory with a mode -that denies write permission. +The requested change requires writing in a directory that denies write +permission. +.It Bq Er EACCES +The +.Fa from +argument is a directory and denies write permission. .It Bq Er EPERM The directory containing .Fa from |