public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/3460] New: canonicalize_file_name comment is wrong
@ 2006-11-06 14:40 bruno at clisp dot org
  2006-11-06 15:57 ` [Bug libc/3460] " drepper at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: bruno at clisp dot org @ 2006-11-06 14:40 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libc/3460] canonicalize_file_name comment is wrong
  2006-11-06 14:40 [Bug libc/3460] New: canonicalize_file_name comment is wrong bruno at clisp dot org
@ 2006-11-06 15:57 ` drepper at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: drepper at redhat dot com @ 2006-11-06 15:57 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2006-11-06 15:57 -------
This has already been changed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-06 15:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-06 14:40 [Bug libc/3460] New: canonicalize_file_name comment is wrong bruno at clisp dot org
2006-11-06 15:57 ` [Bug libc/3460] " drepper at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).