From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4986 invoked by alias); 6 Nov 2006 14:40:41 -0000 Received: (qmail 4893 invoked by uid 48); 6 Nov 2006 14:40:30 -0000 Date: Mon, 06 Nov 2006 14:40:00 -0000 From: "bruno at clisp dot org" To: glibc-bugs@sources.redhat.com Message-ID: <20061106144029.3460.bruno@clisp.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/3460] New: canonicalize_file_name comment is wrong X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00014.txt.bz2 List-Id: The description of canonicalize_file_name in 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.