1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

Mention SAVENAME and SAVESTART in the namei(9) operation flag description

since apparently people were missing that you aren't supposed to access
the name buffer following namei() unless you specify one of these flags.

Pointed out by:	green
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, NAI Labs
This commit is contained in:
Robert Watson 2002-07-23 13:16:36 +00:00
parent fd3083e0f8
commit 060c42c3d2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100571

View File

@ -151,6 +151,17 @@ This flag is not looked for by the actual code, which looks for
FOLLOW.
NOFOLLOW is used to indicate to the source code reader that symlinks
are intentionally not followed.
.It Dv SAVENAME
Do not free the name buffer at the end of the
.Fn namei
invocation, instead free it later in
.Fn NDFREE
so that the caller may access the name buffer.
See below for details.
.It Dv SAVESTART
Retain an additional reference to the parent directory; do not free
the name buffer.
See below for details.
.El
.Sh ALLOCATED ELEMENTS
.Bl -tag -width WANTPARENT