This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/3460] New: canonicalize_file_name comment is wrong
- From: "bruno at clisp dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 6 Nov 2006 14:40:30 -0000
- Subject: [Bug libc/3460] New: canonicalize_file_name comment is wrong
- Reply-to: sourceware-bugzilla at sourceware dot org
The description of canonicalize_file_name in <stdlib.h> does not match the
behaviour of the canonicalize_file_name function. Here is a patch that
clarifies that it behaves like gnulib's
"canonicalize_filename_mode (name, CAN_EXISTING)".
*** stdlib/stdlib.h.bak 2006-01-24 20:38:08.000000000 +0100
--- stdlib/stdlib.h 2006-11-06 15:29:24.000000000 +0100
***************
*** 741,748 ****
#ifdef __USE_GNU
/* Return a malloc'd string containing the canonical absolute name of the
! named file. The last file name component need not exist, and may be a
! symlink to a nonexistent file. */
extern char *canonicalize_file_name (__const char *__name)
__THROW __nonnull ((1)) __wur;
#endif
--- 741,748 ----
#ifdef __USE_GNU
/* Return a malloc'd string containing the canonical absolute name of the
! named file. If any file name component does not exist or is a symlink
! to a nonexistent file, return NULL. */
extern char *canonicalize_file_name (__const char *__name)
__THROW __nonnull ((1)) __wur;
#endif
Btw, the bug tracker does not allow me to enter "Version: 2.5", but glibc-2.5
is already released.
--
Summary: canonicalize_file_name comment is wrong
Product: glibc
Version: 2.4
Status: NEW
Severity: minor
Priority: P3
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: bruno at clisp dot org
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=3460
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.