mirror of https://github.com/mkerrisk/man-pages
readlink.2: Post-merge reworking of text
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
6315ed1f4b
commit
787b49e735
|
@ -239,10 +239,14 @@ value returned by a call to
|
|||
on the link.
|
||||
However, the number of bytes written by
|
||||
.BR readlink ()
|
||||
and
|
||||
.BR readlinkat ()
|
||||
should be checked to make sure that the size of the
|
||||
symbolic link did not increase between the calls.
|
||||
Dynamically allocating the buffer for
|
||||
.BR readlink ()
|
||||
and
|
||||
.BR readlinkat ()
|
||||
also addresses a common portability problem when using
|
||||
.I PATH_MAX
|
||||
for the buffer size,
|
||||
|
|
Loading…
Reference in New Issue