diff options
author | Sebastien Marie <semarie@cvs.openbsd.org> | 2015-08-26 14:46:23 +0000 |
---|---|---|
committer | Sebastien Marie <semarie@cvs.openbsd.org> | 2015-08-26 14:46:23 +0000 |
commit | 127109c8515275ea1f36ebd8f56a3d28ec7e2d62 (patch) | |
tree | 3f9b15606d27840719e0fabb7404cec1de0ef371 /lib | |
parent | 63539cce60477738edc152bbc08ae2a98830ad37 (diff) |
use ENAMETOOLONG instead of EINVAL for errno when string overflow occurs.
document tame.2 according.
ok deraadt@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/tame.2 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc/sys/tame.2 b/lib/libc/sys/tame.2 index cc72194b792..228c625f621 100644 --- a/lib/libc/sys/tame.2 +++ b/lib/libc/sys/tame.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tame.2,v 1.19 2015/08/26 05:55:53 doug Exp $ +.\" $OpenBSD: tame.2,v 1.20 2015/08/26 14:46:22 semarie Exp $ .\" .\" Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> .\" @@ -402,6 +402,12 @@ will fail if: .It Bq Er EFAULT .Fa paths points outside the process's allocated address space. +.It Bq Er ENAMETOOLONG +A element of +.Fa paths +is too large, or prepending +.Fa cwd +to it would exceeded PATH_MAX bytes. .It Bq Er EPERM This process is attempting to increase permissions. .It Bq Er E2BIG |