tags fixed-upstream thanks A patch to fix this page has already been applied for the next upstream release.
Thanks, Michael (Upstream Maintainer) On 12/7/18 2:43 PM, Johannes 'josch' Schauer wrote: > Package: manpages > Version: 4.16-1 > Severity: normal > > Hi, > > currently, the manpage for rename(2) states: > > Note: There is no glibc wrapper for renameat2(); see NOTES. > > and further down under NOTES: > > Glibc does not provide a wrapper for the renameat2() system call; call > it using syscall(2). > > but version 2.28 introduced a renameat2() wrapper as can be seen in the > corresponding section of its NEWS file: > > * The renameat2 function has been added, a variant of the renameat function > which has a flags argument. If the flags are zero, the renameat2 function > acts like renameat. If the flag is not zero and there is no kernel > support for renameat2, the function will fail with an errno value of > EINVAL. This is different from the existing gnulib function renameatu, > which performs a plain rename operation in case of a RENAME_NOREPLACE > flags and a non-existing destination (and therefore has a race condition > that can clobber the destination inadvertently). > > So please correct the man page accordingly, as glibc 2.28 is now in > unstable. > > Thanks! > > cheers, josch > > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/