NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/47975: Bug in rename.2



>Number:         47975
>Category:       lib
>Synopsis:       Bug in rename.2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 30 10:35:00 +0000 2013
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Change rename -> renameat.

Other problem prototype for renameat is in unistd.h and not stdio.h .
>How-To-Repeat:

>Fix:
diff -u -p -r1.27 rename.2
--- lib/libc/sys/rename.2       13 Jan 2013 08:15:02 -0000      1.27
+++ lib/libc/sys/rename.2       30 Jun 2013 09:36:00 -0000
@@ -43,7 +43,7 @@
 .Ft int
 .Fn rename "const char *from" "const char *to"
 .Ft int
-.Fn rename "int fromfd" "const char *from" "int tofd" "const char *to"
+.Fn renameat "int fromfd" "const char *from" "int tofd" "const char *to"
 .Sh DESCRIPTION
 .Fn rename
 causes the link named



Home | Main Index | Thread Index | Old Index