rename(2): Extend EINVAL's description

On some file systems, the last component of the destination path can
contain invalid characters and return EINVAL.

PR:	281033
Differential revision:	https://reviews.freebsd.org/D46450
MFC after:   1 week
This commit is contained in:
Jose Luis Duran 2024-08-26 01:32:14 +00:00 committed by Konstantin Belousov
parent f5a37f8dd3
commit 33f58ac079

View file

@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd March 30, 2020
.Dd August 25, 2024
.Dt RENAME 2
.Os
.Sh NAME
@ -255,6 +255,10 @@ or an attempt is made to rename
.Ql .\&
or
.Ql \&.. .
.It Bq Er EINVAL
The last component of the
.Fa to
path is invalid on the target file system.
.It Bq Er ENOTEMPTY
The
.Fa to