public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libc/2417] New: getcwd() uses ENAMETOOLONG instead of ERANGE @ 2006-03-05 16:53 aurelien at aurel32 dot net 2006-03-05 16:54 ` [Bug libc/2417] " aurelien at aurel32 dot net ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: aurelien at aurel32 dot net @ 2006-03-05 16:53 UTC (permalink / raw) To: glibc-bugs A call to getcwd() with a buffer smaller than the actual path returns an error ENAMETOOLONG on all architectures but ia64, whereas POSIX and the *GNU libc manual* say ERANGE. Actually this is the value returned by the kernel. IMHO the kernel has to be fixed, but the GNU libc should also correct the number. That's the purpose of the attached patch. -- Summary: getcwd() uses ENAMETOOLONG instead of ERANGE Product: glibc Version: 2.3.6 Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: drepper at redhat dot com ReportedBy: aurelien at aurel32 dot net 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=2417 ------- 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] 5+ messages in thread
* [Bug libc/2417] getcwd() uses ENAMETOOLONG instead of ERANGE 2006-03-05 16:53 [Bug libc/2417] New: getcwd() uses ENAMETOOLONG instead of ERANGE aurelien at aurel32 dot net @ 2006-03-05 16:54 ` aurelien at aurel32 dot net 2006-03-10 17:12 ` decimal at us dot ibm dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: aurelien at aurel32 dot net @ 2006-03-05 16:54 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From aurelien at aurel32 dot net 2006-03-05 16:54 ------- Created an attachment (id=902) --> (http://sourceware.org/bugzilla/attachment.cgi?id=902&action=view) proposed patch -- http://sourceware.org/bugzilla/show_bug.cgi?id=2417 ------- 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] 5+ messages in thread
* [Bug libc/2417] getcwd() uses ENAMETOOLONG instead of ERANGE 2006-03-05 16:53 [Bug libc/2417] New: getcwd() uses ENAMETOOLONG instead of ERANGE aurelien at aurel32 dot net 2006-03-05 16:54 ` [Bug libc/2417] " aurelien at aurel32 dot net @ 2006-03-10 17:12 ` decimal at us dot ibm dot com 2006-03-10 17:13 ` decimal at us dot ibm dot com 2006-04-01 20:57 ` drepper at redhat dot com 3 siblings, 0 replies; 5+ messages in thread From: decimal at us dot ibm dot com @ 2006-03-10 17:12 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From decimal at us dot ibm dot com 2006-03-10 17:12 ------- When you say "on all architectures but ia64" do you mean this is true for the generic kernel or is this Debian specific? On OpenSUSE x86 10.0 I get ERANGE. I do not see why glibc should put in a patch to work around a bug in the kernel. This bug should be fixed in the kernel only. If glibc put in a workaround for every simple kernel bug which code be fixed the code would quickly become unmanageable. -- http://sourceware.org/bugzilla/show_bug.cgi?id=2417 ------- 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] 5+ messages in thread
* [Bug libc/2417] getcwd() uses ENAMETOOLONG instead of ERANGE 2006-03-05 16:53 [Bug libc/2417] New: getcwd() uses ENAMETOOLONG instead of ERANGE aurelien at aurel32 dot net 2006-03-05 16:54 ` [Bug libc/2417] " aurelien at aurel32 dot net 2006-03-10 17:12 ` decimal at us dot ibm dot com @ 2006-03-10 17:13 ` decimal at us dot ibm dot com 2006-04-01 20:57 ` drepper at redhat dot com 3 siblings, 0 replies; 5+ messages in thread From: decimal at us dot ibm dot com @ 2006-03-10 17:13 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From decimal at us dot ibm dot com 2006-03-10 17:12 ------- s/code be fixed/could be fixed/ -- http://sourceware.org/bugzilla/show_bug.cgi?id=2417 ------- 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] 5+ messages in thread
* [Bug libc/2417] getcwd() uses ENAMETOOLONG instead of ERANGE 2006-03-05 16:53 [Bug libc/2417] New: getcwd() uses ENAMETOOLONG instead of ERANGE aurelien at aurel32 dot net ` (2 preceding siblings ...) 2006-03-10 17:13 ` decimal at us dot ibm dot com @ 2006-04-01 20:57 ` drepper at redhat dot com 3 siblings, 0 replies; 5+ messages in thread From: drepper at redhat dot com @ 2006-04-01 20:57 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From drepper at redhat dot com 2006-04-01 20:57 ------- There is no problem in libc and I cannot see anything wrong in the current kernel sources either. -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX http://sourceware.org/bugzilla/show_bug.cgi?id=2417 ------- 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] 5+ messages in thread
end of thread, other threads:[~2006-04-01 20:57 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-03-05 16:53 [Bug libc/2417] New: getcwd() uses ENAMETOOLONG instead of ERANGE aurelien at aurel32 dot net 2006-03-05 16:54 ` [Bug libc/2417] " aurelien at aurel32 dot net 2006-03-10 17:12 ` decimal at us dot ibm dot com 2006-03-10 17:13 ` decimal at us dot ibm dot com 2006-04-01 20:57 ` 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).